Abdullah bin Umar reported,

The Prophet ﷺ used to position his mount and pray facing it.I asked, "What if the camels became restless?"He replied, "He would take the saddle, set it upright, and pray facing its rear."Ibn Umar رضي الله عنه used to do the same.

Bukhari 507

Sahih

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

عن ابن عمر

عن النبي ﷺ أنه كان يعرض راحلته فيصلي إليها قلت أفرأيت إذا هبت الركاب قال كان يأخذ هذا الرحل فيعدله فيصلي إلى آخرته أو قال مؤخره وكان ابن عمر رضي الله عنه يفعله

البخاري 507صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer
Chapter
Prayer toward the mount, the camel, the tree, and the saddle
Numbering
Darussalam 507
Bukhari 507