Sahih Muslim , Book 4, Hadith 1498 (USC-MSA) ⓘ
Ibn 'Umar reported that the Apostle used to pray on (the back of) his camel in whatever direction it took him.
وَحَدَّثَنَاهُ أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو خَالِدٍ الأَحْمَرُ، عَنْ عُبَيْدِ اللَّهِ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ النَّبِيَّ صلى الله عليه وسلم كَانَ يُصَلِّي عَلَى رَاحِلَتِهِ حَيْثُ تَوَجَّهَتْ بِهِ .
also referenced under: Book 6, Hadith 42 (In-Book) & Hadith 700 (Reference)