AHMAD 14426:
from Jābir b. ʿAbdullāh —
[Machine] The Messenger of Allah ﷺ was on a journey when he saw a man covered in dust. He asked, "What is this?" They replied, "He is fasting." He said, "Fasting is not considered righteousness, nor is the righteous fasting while traveling."
أحمد ١٤٤٢٦:
عن جابر بن عبد الله —
أَنَّ رَسُولَ اللهِ ﷺ كَانَ فِي سَفَرٍ فَرَأَى رَجُلًا عَلَيْهِ زِحَامٌ قَدْ ظُلِّلَ عَلَيْهِ فَقَالَ مَا هَذَا؟ قَالُوا صَائِمٌ قَالَ لَيْسَ مِنَ الْبِرِّ الصِّيَامُ أَوِ الْبِرَّ الصَّائِمُ فِي السَّفَرِ
hadithunlocked.com