ENOfficial
It was narrated that ‘Aishah said: “Hamzah Al-Aslami asked the Messenger of Allah (ﷺ): ‘I am fasting, should I fast while traveling?’ The Messenger of Allah (ﷺ) said: ‘If you wish, then fast, and if you wish, then break your fast.’”
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ نُمَيْرٍ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ، قَالَتْ: سَأَلَ حَمْزَةُ الأَسْلَمِيُّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ فَقَالَ: إِنِّي أَصُومُ أَفَأَصُومُ فِي السَّفَرِ؟ فَقَالَ ـ صلى الله عليه وسلم ـ " إِنْ شِئْتَ فَصُمْ وَإِنْ شِئْتَ فَأَفْطِرْ " .
sunnah.com