Sahih Muslim , Hadith 1115

Jabir b. 'Abdullah (Allah be pleased with both of them) reported that in the course of a journey Allah's Messenger saw a man, people crowding around him and providing him a shade. Upon this he (the Holy Prophet) said: What is the matter with him? They said: He is a person observing fast. Whereupon the Messenger of Allah said: It is no righteousness that you fast on journey.

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَمُحَمَّدُ بْنُ الْمُثَنَّى، وَابْنُ، بَشَّارٍ جَمِيعًا عَنْ مُحَمَّدِ، بْنِ جَعْفَرٍ - قَالَ أَبُو بَكْرٍ حَدَّثَنَا غُنْدَرٌ، - عَنْ شُعْبَةَ، عَنْ مُحَمَّدِ بْنِ عَبْدِ الرَّحْمَنِ بْنِ سَعْدٍ، عَنْ مُحَمَّدِ بْنِ عَمْرِو بْنِ الْحَسَنِ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ، - رضى الله عنهما - قَالَ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم فِي سَفَرٍ فَرَأَى رَجُلاً قَدِ اجْتَمَعَ النَّاسُ عَلَيْهِ وَقَدْ ظُلِّلَ عَلَيْهِ فَقَالَ ‏"‏ مَا لَهُ ‏"‏ ‏.‏ قَالُوا رَجُلٌ صَائِمٌ ‏.‏ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ لَيْسَ مِنَ الْبِرِّ أَنْ تَصُومُوا فِي السَّفَرِ ‏"‏ ‏.‏

sunnah.com

'Amr b. al-Hasan is reported to have said that he heard Jabir b. 'Abdullah (Allah be pleased with both of them) as saying that the Messenger of Allah saw a man. The rest of the hadith is the same as mentioned above.

حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ، حَدَّثَنَا أَبِي، حَدَّثَنَا شُعْبَةُ، عَنْ مُحَمَّدِ بْنِ عَبْدِ الرَّحْمَنِ، قَالَ سَمِعْتُ مُحَمَّدَ بْنَ عَمْرِو بْنِ الْحَسَنِ، يُحَدِّثُ أَنَّهُ سَمِعَ جَابِرَ بْنَ عَبْدِ اللَّهِ، - رضى الله عنهما - يَقُولُ رَأَى رَسُولُ اللَّهِ صلى الله عليه وسلم رَجُلاً بِمِثْلِهِ ‏.‏

sunnah.com

This hadith has been narrated on the authority of Shu'ba with the same chain of transmitters but with this addition that he (the Holy Prophet) said: " Take advantage of the concession of Allah Who Wanted it to you." When he (one of the narrators) asked him (the other one, Yabya b. Abi Kathar) he did not retain it in his mind.

وَحَدَّثَنَاهُ أَحْمَدُ بْنُ عُثْمَانَ النَّوْفَلِيُّ، حَدَّثَنَا أَبُو دَاوُدَ، حَدَّثَنَا شُعْبَةُ، بِهَذَا الإِسْنَادِ ‏.‏ نَحْوَهُ وَزَادَ قَالَ شُعْبَةُ وَكَانَ يَبْلُغُنِي عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ أَنَّهُ كَانَ يَزِيدُ فِي هَذَا الْحَدِيثِ وَفِي هَذَا الإِسْنَادِ أَنَّهُ قَالَ ‏ "‏ عَلَيْكُمْ بِرُخْصَةِ اللَّهِ الَّذِي رَخَّصَ لَكُمْ ‏" ‏ ‏.‏ قَالَ فَلَمَّا سَأَلْتُهُ لَمْ يَحْفَظْهُ ‏.‏

sunnah.com