The Messenger of Allah ﷺ both fasted and broke his fast while traveling.
حدثنا علي بن محمد حدثنا وكيع عن سفيان عن منصور عن مجاهد
صام رسول الله ﷺ في السفر وأفطر
No references are available.
Graded sahih. Narrated by Nasai, 4/184, Fasting, mention of the disagreement over Mansur, no. 2292, via the route of Shubah from Mansur, with this same wording.Bukhari, no. 1948, and Muslim, no. 1113, and others, narrated it via the route of Mansur, from Mujahid, from Tawus, from Ibn Abbas, with this same wording but at greater length, and this is the preserved version.