(Imām Bukhārī narrates): Yahya bin Sulaiman narrated the hadith to us, he said: Ibn Wahb narrated the hadith to us, he said: Umar bin Muhammad narrated the hadith to me, that Hafs bin Asim narrated the hadith to him, he narrated that
Hazrat Ibn Umar (Allāh be pleased with them both) undertook a journey, he said: I have kept the company of the Prophet ﷺ, I have not seen him ﷺ offer voluntary prayer while travelling, and Allāh, Glorious is His Mention, has said: "Indeed there is for you in the Messenger of Allāh ﷺ an excellent example." (Al-Ahzab: )
Reference: Sahih Al Bukhari 1101