Sahih Muslim Book 6, Hadith 49
Salim b. 'Abdullah reported on the authority of his father that the Messenger of Allah (may peace be. upon him) used to observe Nafl (supererogatory) prayer on his ride no matter in what direction it turned its face, and he observed Witr too on it, but did not observe obligatory prayer on it.
'Abdullah b. 'Umar reported that the Messenger of Allah (ﷺ) used to observe Witr prayer on his ride.
'Abdullah b. 'Amir b. Rabi'a has reported on the authority of his father that he had seen the Messenger of Allah (ﷺ) observing Nafl player at night on a journey on the back of his ride in whichever direction it turned its face.