“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.’”
سَأَلَ حَمْزَةُ الأَسْلَمِيُّ رَسُولَ اللَّهِ ﷺ فَقَالَ إِنِّي أَصُومُ أَفَأَصُومُ فِي السَّفَرِ؟ فَقَالَ ﷺ إِنْ شِئْتَ فَصُمْ وَإِنْ شِئْتَ فَأَفْطِرْ