Jami` at-Tirmidhi, Book 2, Hadith 204 (Tirmidhi 352)

Ibn Umar narrated:

"The Prophet performed Salat towards his she-camel, or his mount, and he would perform Salat while on his mount, whichever direction it was facing."