Abdullah bin Abbas reported,

The Messenger of Allah ﷺ would fast until we said he would never break his fast, and he would go without fasting until we said he did not intend to fast at all. He never fasted an entire month consecutively, other than Ramadan, from the time he arrived in Medina.

Nasai 2348

Sahih

أخبرنا محمد بن بشار قال حدثنا محمد قال حدثنا شعبة عن أبي بشر عن سعيد بن جبير

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

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

النسائي 2348صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Fasting
Chapter
Fasting of the Prophet ﷺ, may my father and mother be sacrificed for him, and mention of the disagreement among narrators regarding that
Numbering
Darussalam 2348
Nasai 2348