Sunan Ibn Majah, Book 7, Hadith 28 (Ibn Majah 1665)

It was narrated from Ibn ‘Umar that the Messenger of Allah (ﷺ) said:

"It is not an act of righteousness to fast while traveling."