It was narrated from Ibn ‘Umar that the Messenger of Allah (ﷺ) said: It is not an act of righteousness to fast while traveling.
Authentic