Abdullah bin Abbas reported,

The Messenger of Allah ﷺ set out from Medina toward Mecca and fasted until he reached Usfan. Then he called for water, raised it up in his hand to show the people, and broke his fast. He continued without fasting until he arrived in Mecca, and this took place during Ramadan.Ibn Abbas used to say, "The Messenger of Allah ﷺ both fasted and broke his fast, so whoever wishes may fast, and whoever wishes may break his fast."

Ahmad 2652

Sahih

حدثنا عفان حدثنا أبو عوانة عن منصور عن مجاهد عن طاوس

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

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

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