[Machine] From Ibn 'Umar, he prays wherever his mount directs him, and I have seen the Messenger of Allah ﷺ doing that and interpreting this verse: "So wherever you [might] turn yourselves or your faces" [Surah Al-Baqarah: 144].
عَنِ ابْنِ عُمَرَ يُصَلِّي حَيْثُمَا تَوَجَّهَتْ بِهِ رَاحِلَتُهُ وَقَدْ رَأَيْتُ رَسُولَ اللهِ ﷺ يَفْعَلُ ذَلِكَ وَيَتَأَوَّلُ عَلَيْهِ {وَحَيْثُ مَا كُنْتُمْ فَوَلُّوا وُجُوهَكُمْ} [البقرة 144]