Abdullah bin Abbas reported,

The Messenger of Allah ﷺ never fasted an entire month in full except Ramadan. When he fasted, he would continue fasting until one would say, "By Allah, he will not break his fast." And when he abstained from fasting, he would continue until one would say, "By Allah, he will not fast."

Muslim 2724

Sahih

حدثنا أبو الربيع الزهراني حدثنا أبو عوانة عن أبي بشر عن سعيد بن جبير

عن ابن عباس رضي الله عنهما قال

ما صام رسول الله ﷺ شهرا كاملا قط غير رمضان وكان يصوم إذا صام حتى يقول القائل لا والله لا يفطر ويفطر إذا أفطر حتى يقول القائل لا والله لا يصوم

مسلم 2724صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Fasting
Chapter
Fasting of the Prophet ﷺ outside Ramadan and the recommendation not to let a month pass without fasting
Numbering
Darussalam 2724
Muslim 2724