Narrated Jabir: Allah's Apostle used to pray (optional, non-obligatory prayer) while riding on his mount (Rahila) wherever it turned, and whenever he wanted to pray the compulsory prayer he dismounted and prayed facing the Qibla.
Hadith ReferenceSahih Bukhari / The Book of As-Salat (The Prayer) / Hadith: 400
Hadith Gradingمحدثین:أحاديث صحيح البخاريّ كلّها صحيحة