Sahih Muslim – Hadith No : 1645

Ibn ‘Umar reported that the Apostle (may peace be upon him) used to pray on (the back of) his camel in whatever direction it took him.

Hadith In Arabic Text :

وحدثناه أبو بكر بن أبي شيبة، حدثنا أبو خالد الأحمر، عن عبيد الله، عن نافع، عن ابن عمر، أن النبي صلى الله عليه وسلم كان يصلي على راحلته حيث توجهت به ‏.‏

Chapter : The Book of Prayer (Travellers) – كتاب صلاة المسافرين وقصرها