Abdullah bin Umar used to pray on his mount while traveling, facing whatever direction it took, gesturing with his head for the movements. Abdullah mentioned that the Prophet ﷺ used to do the same.
حدثنا موسى، قال حدثنا عبد العزيز بن مسلم، قال حدثنا
كان عبد الله بن عمر رضى الله عنهما يصلي في السفر على راحلته، أينما توجهت يومئ. وذكر عبد الله أن النبي ﷺ كان يفعله.