Sahih al-Bukhari 1094
Sahih al-Bukhari · Book 18: Shortening the Prayers (At-Taqseer) · To offer Nawafil on the back of animals
Narrated Jabir bin `Abdullah:
حَدَّثَنَا أَبُو نُعَيْمٍ ، قَالَ حَدَّثَنَا شَيْبَانُ ، عَنْ يَحْيَى ، عَنْ مُحَمَّدِ بْنِ عَبْدِ الرَّحْمَنِ ، أَنَّ جَابِرَ بْنَ عَبْدِ اللَّهِ ، أَخْبَرَهُ أَنَّ النَّبِيَّ صلى الله عليه وسلم كَانَ يُصَلِّي التَّطَوُّعَ وَهْوَ رَاكِبٌ فِي غَيْرِ الْقِبْلَةِ.
The Prophet (ﷺ) used to offer the Nawafil, while riding, facing a direction other than that of the Qibla.