Abdullah bin Dinar reported,

Abdullah bin Umar رضي الله عنهم used to pray during travel on his mount, facing whichever direction it turned, gesturing with his head. Abdullah mentioned that the Prophet ﷺ used to do the same.

Bukhari 1095

Sahih

حدثنا موسى بن إسماعيل قال حدثنا عبد العزيز بن مسلم قال حدثنا

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

كان عبد الله بن عمر رضي الله عنهما يصلي في السفر على راحلته أينما توجهت يومئ وذكر عبد الله أن النبي ﷺ كان يفعله

البخاري 1095صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Shortening
Chapter
Voluntary prayer on riding animals and in whatever direction they are facing
Numbering
Darussalam 1095
Bukhari 1095