I saw the Messenger of Allah (ﷺ) praying (Nafl prayer) on a donkey's back while his face…

Sahih Muslim Book 6 Hadith 45

Sahih Muslim #700 e

The Book of Prayer - Travellers 6:45

Ibn 'Umar reported:

I saw the Messenger of Allah (ﷺ) praying (Nafl prayer) on a donkey's back while his face was turned towards Khaibar.

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

Grade: Sahih