To get down to offer compulsory Salat
باب يَنْزِلُ لِلْمَكْتُوبَةِ
Sahih al-Bukhari, Book of Shortening the Prayers (At-Taqseer)(view book)
Narrated 'Amir bin Rabi'a,
I saw the Prophet on his Mount praying Nawafil by nodding his head, whatever direction he faced, but Allah's Apostle never did the same in offering the compulsory prayers. Narrated Salim: At night'Abdullah bin 'Umar used to offer the prayer on the back of his animal during the journey and never cared about the direction he faced. Ibn 'Umar said, "Allah's Apostle used to offer the optional prayer on the back of his Mount facing any direction and also used to pray the Witr on it but never offered the compulsory prayer on it."
حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ، قَالَ حَدَّثَنَا اللَّيْثُ، عَنْ عُقَيْلٍ، عَنِ ابْنِ شِهَابٍ، عَنْ عَبْدِ اللَّهِ بْنِ عَامِرِ بْنِ رَبِيعَةَ، أَنَّ عَامِرَ بْنَ رَبِيعَةَ، أَخْبَرَهُ قَالَ رَأَيْتُ رَسُولَ اللَّهِ ﷺ وَهْوَ عَلَى الرَّاحِلَةِ يُسَبِّحُ، يُومِئُ بِرَأْسِهِ قِبَلَ أَىِّ وَجْهٍ تَوَجَّهَ، وَلَمْ يَكُنْ رَسُولُ اللَّهِ ﷺ يَصْنَعُ ذَلِكَ فِي الصَّلاَةِ الْمَكْتُوبَةِ.
Classification
Narrated Jabir bin 'Abdullah
The Prophet used to pray (the Nawafil) on his Mount facing east and whenever he wanted to offer the compulsory prayer, he used to dismount and face the Qibla.
حَدَّثَنَا مُعَاذُ بْنُ فَضَالَةَ، قَالَ حَدَّثَنَا هِشَامٌ، عَنْ يَحْيَى، عَنْ مُحَمَّدِ بْنِ عَبْدِ الرَّحْمَنِ بْنِ ثَوْبَانَ، قَالَ حَدَّثَنِي جَابِرُ بْنُ عَبْدِ اللَّهِ، أَنَّ النَّبِيَّ ﷺ كَانَ يُصَلِّي عَلَى رَاحِلَتِهِ نَحْوَ الْمَشْرِقِ فَإِذَا أَرَادَ أَنْ يُصَلِّيَ الْمَكْتُوبَةَ نَزَلَ فَاسْتَقْبَلَ الْقِبْلَةَ.