While travelling the Messenger of Allah (ﷺ) would pray voluntary prayer on his riding…

Sunan Abu Dawud Book 4 Hadith 27

Sunan Abu Dawud #1224

Prayer (Kitab Al-Salat): Detailed Rules of Law about the Prayer during Journey 4:27

Narrated Ibn 'Umar:

While travelling the Messenger of Allah (ﷺ) would pray voluntary prayer on his riding beast in whatever direction it turned; and he would observe witr prayer, but he did not offer the obligatory prayers upon it.

Chapter: Praying Voluntary Prayers And Witr While Riding A Mount

Grade: Sahih (Al-Albani)