Abdullah bin Abbas reported,

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

Ahmad 2151

Sahih

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

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

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

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