Ibn Umar used to pray on his mount in whatever direction it faced, and he stated that the Messenger of Allah ﷺ used to do the same.
حدثنا عبد الله قال وجدت في كتاب أبي حدثنا يزيد أخبرنا شعبة عن عبد الله بن دينار
أنه كان يصلي على راحلته حيث وجهت وزعم أن رسول الله ﷺ كان يفعله