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.
Sunan Abi Dawud Book 14, Hadith 95