I came to Abu Sa'id al-Khudri (Allah be pleased with him) and he was surrounded (by people), and when they dispersed I said to him: I am not going to ask you about what these people were asking. I ask you about fasting on a journey. Upon this he said: We travelled with the Messenger of Allah ﷺ towards Mecca and we had been observing fast. We halted at a place. There the Messenger of Allah ﷺ said: You are nearing your enemy and breaking of fast would give you greater strength, and that was a concession (given to us). But some of us continued to observe the fast and some of us broke it. We then got down at another place and he (the Holy Prophet) said: You are going to encounter the enemy in the morning and breaking of the fast would give you strength, so break the fast. As it was a point of stress, so we broke the fast. But subsequently we saw ourselves observing the fast with the Messenger of Allah ﷺ on a journey. (Using translation from Muslim 1120)
أَتَيْتُ أَبَا سَعِيدٍ وَهُوَ مَكْثُورٌ عَلَيْهِ فَلَمَّا تَفَرَّقَ النَّاسُ عَنْهُ قُلْتُ إِنِّي لَا أَسْأَلُكَ عَمَّا سَأَلَكَ هَؤُلَاءِ أَسْأَلُكَ عَنِ الصَّوْمِ فِي السَّفَرِ فَقَالَ سَافَرْنَا مَعَ رَسُولِ اللهِ ﷺ إِلَى مَكَّةَ وَنَحْنُ صِيَامٌ فَنَزَلْنَا مَنْزِلًا فَقَالَ رَسُولُ اللهِ ﷺ إِنَّكُمْ قَدْ دَنَوْتُمْ مِنْ عَدُوِّكُمْ وَالْفِطْرُ أَقْوَى لَكُمْ فَكَانَتْ رُخْصَةً مِنَّا مَنْ صَامَ وَمِنَّا مَنْ أَفْطَرَ ثُمَّ نَزَلْنَا مَنْزِلًا آخَرَ فَقَالَ إِنَّكُمْ مُصَبِّحُوا عَدُوَّكُمْ وَالْفِطْرُ أَقْوَى لَكُمْ فَأَفْطِرُوا فَكَانَتْ عَزْمَةً فَأَفْطَرْنَا ثُمَّ قَالَ لَقَدْ رَأَيْتُنَا نَصُومُ مَعَ رَسُولِ اللهِ ﷺ بَعْدَ ذَلِكَ فِي السَّفَرِ