Abdullah bin Umar reported,

Ibn Umar said that the Messenger of Allah ﷺ used to pray on his mount in whatever direction it faced.Abdullah bin Dinar said that Ibn Umar used to do the same.

Muslim 1616

Sahih

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

عن ابن عمر

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

مسلم 1616صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Travelers' prayer and its shortening
Chapter
Permissibility of praying voluntary prayers on a mount while traveling, whichever direction it faces
Numbering
Darussalam 1616
Muslim 1616