Sunan Ibn Majah, Book 7, Hadith 27 (Ibn Majah 1664)

It was narrated from Ka’b bin ‘Asim that the Messenger of Allah (ﷺ) said:

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