Sunan Abi Dawud, Book 14, Hadith 95 (Abu Dawud 2408)
Narrated Jabir b. 'Abd Allah :
The Prophet (ﷺ) saw a man who had been put in the shade and saw a crowd of people around him (in the course of a journey). He said: Fasting while on journey is not part of righteousness.