[Machine] The Messenger of Allah ﷺ used to pray voluntary prayers on his mount when he traveled to the destination. But when he wanted to pray the obligatory prayer, he would dismount and face the Qibla.
كَانَ رَسُولُ اللهِ ﷺ يُصَلِّي عَلَى رَاحِلَتِهِ تَطَوُّعًا حَيْثُ تَوَجَّهَتْ بِهِ فِي السَّفَرِ فَإِذَا أَرَادَ أَنْ يُصَلِّيَ الْمَكْتُوبَةَ نَزَلَ عَنْ رَاحِلَتِهِ وَاسْتَقْبَلَ الْقِبْلَةَ