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.’”
SahihSahihSahihBook 7 · Hadith 25