Jabir bin Abdullah reported,

The Messenger of Allah ﷺ used to perform voluntary prayers on his mount during travel, facing whichever direction it took him. But when he wanted to perform an obligatory prayer, he would dismount and face the qiblah.

Ahmad 15038

Sahih

حدثنا عبد الرزاق عن معمر عن يحيى بن أبي كثير عن محمد بن عبد الرحمن بن ثوبان

عن جابر بن عبد الله قال

كان رسول الله ﷺ يصلي على راحلته تطوعا حيث توجهت به في السفر فإذا أراد أن يصلي المكتوبة نزل عن راحلته واستقبل القبلة

أحمد 15038صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Jabir bin Abdullah
Numbering
Darussalam 15038
Ahmad 15038