"The Messenger of Allah ﷺ used to pray while on his animal when he was coming back from Makkah to Madinah. Concerning this, the verse was revealed: So wherever you turn (yourselves or your faces) there is the Face of Allah.'" [1] [1] Al-Baqarah 2:115.
كَانَ رَسُولُ اللَّهِ ﷺ يُصَلِّي عَلَى دَابَّتِهِ وَهُوَ مُقْبِلٌ مِنْ مَكَّةَ إِلَى الْمَدِينَةِ وَفِيهِ أُنْزِلَتْ { فَأَيْنَمَا تُوَلُّوا فَثَمَّ وَجْهُ اللَّهِ }