Abdullah bin Abbas reported,

The Messenger of Allah ﷺ would fast until we said he would never break his fast, and he would break his fast until we said he would never fast. He never fasted an entire month consecutively, except Ramadan, from the time he arrived in Madinah.

Ibn Majah 1711

Sahih

حدثنا محمد بن بشار حدثنا محمد بن جعفر حدثنا شعبة عن أبي بشر عن سعيد بن جبير

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

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

ابن ماجه 1711صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Fasting
Chapter
Fasting of the Prophet ﷺ
Numbering
Darussalam 1711
Ibn Majah 1711