"The Messenger of Allah ﷺ used to pray on his mount while on a journey, no matter what direction it was facing." Malik said: "Abdullah bin Dinar said: 'And Ibn 'Umar used to do likewise.'" (Using translation from Nasāʾī 492)
«كَانَ رَسُولُ اللهِ ﷺ يُصَلِّي عَلَى رَاحِلَتِهِ فِي السَّفَرِ حَيْثُ تَوَجَّهَتْ بِهِ» قَالَ مَالِكٌ قَالَ عَبْدُ اللهِ بْنُ دِينَارٍ وَكَانَ ابْنُ عُمَرَ يَفْعَلُ ذَلِكَ