(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