Abdullah bin Abbas reported,

The Messenger of Allah ﷺ set out for Mecca in the year of the Conquest during Ramadan. He fasted until he reached al-Kadid, then he broke his fast, and the people broke their fast as well. They would always follow the most recent practice of the Messenger of Allah ﷺ.

Azami 4596

Sahih

عن عبد الله بن عباس

أن رسول الله ﷺ خرج إلى مكة عام الفتح في رمضان، فصام حتى بلغ الكديد، ثم أفطر فأفطر الناس، وكانوا يأخذون بالأحدث فالأحدث من أمر رسول الله ﷺ.

الأعظمي 4596صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Fasting
Chapter
What is permitted and what is not permitted for the fasting person
Section
Whoever said fasting is abrogated during travel
Numbering
Jami al-Kamil 4596 (2nd edition)
Azami 4596