´It was narrated that Al-'Awwam bin Hawshab said:` "I said to Mujahid: 'What about fasting while traveling?' He said: 'The Messenger of Allah used to fast (sometimes) and not fast (sometimes)."'
Related hadith on this topic
Explanation & Benefits
Shaykh Umar Farooq Saeedi
Benefits and Issues:
➊ Breaking the fast during travel or jihad is more virtuous.
➋ It is also permissible to keep the fast while traveling.
➌ In the discomfort of heat or thirst, it is permissible to pour water over one’s head or body, to perform ritual bath (ghusl), or to wrap oneself in a wet cloth. Similarly, it is also permissible to benefit from air conditioning.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 2365