During a journey, I lagged behind him. He asked, "Where were you?"I replied, "I was performing the Witr prayer."He said, "Do you not have an example in the Messenger of Allah? I saw the Messenger of Allah ﷺ pray Witr upon his mount."
حدثنا قتيبة حدثنا مالك بن أنس عن أبي بكر بن عمر بن عبد الرحمن عن سعيد بن يسار قال كنت أمشي مع
في سفر فتخلفت عنه فقال أين كنت فقلت أوترت فقال أليس لك في رسول الله أسوة رأيت رسول الله ﷺ يوتر على راحلته
No references are available.
Bukhari narrated it in the chapter on Witr, section "Witr while riding," hadith no. 999, and Muslim, hadith no. 36/700, from the hadith of Malik through the same chain, and it is in Muwatta 1/124 (Yahya).Also on this topic, a report from Ibn Abbas [Ibn Majah, hadith no. 1201].