“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.’”
Sunan Ibn Majah Book 7, Hadith 25