(4) باب جَوَازِ صَلاَةِ النَّافِلَةِ عَلَى الدَّابَّةِ فِي السَّفَرِ حَيْثُ تَوَجَّهَتْ
Sa'id b. Yasar reported:
I was travelling along with Ibn 'Umar on the way to Mecca. Sa'id said: When I apprehended dawn, I dismounted (the ride) and observed Witr prayer and then again joined him. Ibn 'Umar said to me: Where were you? I said: I apprehended the appearance of dawn, so I dismounted and observed Witr prayer. Upon this 'Abdullah said: Is there not a model pattern for you in the Messenger of Allah (ﷺ)? I said: Yes, by Allah, and (then) he said: The Messenger of Allah (ﷺ) used to observe Witr prayer on the camel's back.
Reference: Sahih Muslim 700 f
In-book reference: Book 6, Hadith 46
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1502