Abdullah bin Abbas reported,

The Messenger of Allah ﷺ traveled in the year of the Conquest during Ramadan. He fasted until he reached Usfan, then he called for a vessel and drank from it during the day so the people could see him, and he broke his fast. He continued without fasting until he entered Makkah, and he conquered Makkah during Ramadan.Ibn Abbas said, "The Messenger of Allah ﷺ both fasted and broke his fast while traveling, so whoever wishes may fast and whoever wishes may break his fast."

Ahmad 2994

Sahih

حدثنا يحيى بن آدم حدثنا مفضل عن منصور عن مجاهد عن طاوس

عن ابن عباس قال

سافر رسول الله ﷺ عام الفتح في رمضان فصام حتى بلغ عسفان ثم دعا بإناء فشرب نهارا ليراه الناس ثم أفطر حتى دخل مكة وافتتح مكة في رمضان قال ابن عباس فصام رسول الله ﷺ في السفر وأفطر فمن شاء صام ومن شاء أفطر

أحمد 2994صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 2994
Ahmad 2994