Ibn 'Umar reported that the Apostle (ﷺ) used to pray on (the back of) his camel in…

Sahih Muslim Book 6 Hadith 42

Sahih Muslim #700 b

The Book of Prayer - Travellers 6:42

Ibn 'Umar reported that the Apostle (ﷺ) used to pray on (the back of) his camel in whatever direction it took him.

Chapter: It is permissible to offer voluntary prayers atop one’s mount when travelling, no matter what direction it is facing

Grade: Sahih