Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tirmidhi:711Hārūn b. Isḥāq al-Hamdānī > ʿAbdah b. Sulaymān > Hishām b. ʿUrwah from his father > ʿĀʾishah

Hamzah bin Amr Al-Aslami asked the Messenger of Allah about fasting while traveling, and he fasted regularly. So the Messenger of Allah said: 'If you wish then fast, and if you wish then break (the fast).'"  

الترمذي:٧١١حَدَّثَنَا هَارُونُ بْنُ إِسْحَاقَ الْهَمْدَانِيُّ حَدَّثَنَا عَبْدَةُ بْنُ سُلَيْمَانَ عَنْ هِشَامِ بْنِ عُرْوَةَ عَنْ أَبِيهِ عَنْ عَائِشَةَ

أَنَّ حَمْزَةَ بْنَ عَمْرٍو الأَسْلَمِيَّ سَأَلَ رَسُولَ اللَّهِ ﷺ عَنِ الصَّوْمِ فِي السَّفَرِ وَكَانَ يَسْرُدُ الصَّوْمَ فَقَالَ رَسُولُ اللَّهِ ﷺ إِنْ شِئْتَ فَصُمْ وَإِنْ شِئْتَ فَأَفْطِرْ قَالَ وَفِي الْبَابِ عَنْ أَنَسِ بْنِ مَالِكٍ وَأَبِي سَعِيدٍ وَعَبْدِ اللَّهِ بْنِ مَسْعُودٍ وَعَبْدِ اللَّهِ بْنِ عَمْرٍو وَأَبِي الدَّرْدَاءِ وَحَمْزَةَ بْنِ عَمْرٍو الأَسْلَمِيِّ  

قَالَ أَبُو عِيسَى حَدِيثُ عَائِشَةَ أَنَّ حَمْزَةَ بْنَ عَمْرٍو سَأَلَ النَّبِيَّ ﷺ حَدِيثٌ حَسَنٌ صَحِيحٌ

See similar narrations below:

Collected by Bayhaqī
bayhaqi:8157Abū ʿAbdullāh al-Ḥāfiẓ > Muḥammad b. Yaʿqūb al-Ḥāfiẓ > Yaḥyá b. Muḥammad b. Yaḥyá > Abū al-Rabīʿ > Ḥammād / Ibn Zayd > Hishām b. ʿUrwah from his father > ʿĀʾishah

Hamzat al-Aslami asked the Prophet ﷺ: Messenger of Allah, I am a man who keeps perpetual fast, may I fast while on a journey? He replied: Fast if you like, or break your fast if you like. (Using translation from Abū Dāʾūd 2402)   

البيهقي:٨١٥٧أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ مُحَمَّدُ بْنُ يَعْقُوبَ الْحَافِظُ ثنا يَحْيَى بْنُ مُحَمَّدِ بْنِ يَحْيَى ثنا أَبُو الرَّبِيعِ ثنا حَمَّادٌ يَعْنِي ابْنَ زَيْدٍ عَنْ هِشَامِ بْنِ عُرْوَةَ عَنْ أَبِيهِ عَنْ عَائِشَةَ ؓ أَنَّ

حَمْزَةَ بْنَ عَمْرٍو الْأَسْلَمِيَّ سَأَلَ رَسُولَ اللهِ ﷺ فَقَالَ يَا رَسُولَ اللهِ إِنِّي رَجُلٌ أَسْرُدُ الصَّوْمَ أَفَأَصُومُ فِي السَّفَرِ؟ قَالَ صُمْ إِنْ شِئْتَ وَأَفْطِرْ إِنْ شِئْتَ  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ أَبِي الرَّبِيعِ