Voluntary fasts:
The Prophet’s ﷺ manner of fasting outside Ramadan
❀ «عن أنس بن مالك رضي الله عنه، يقول: كان رسول الله صلى الله عليه وسلم يفطر من الشهر حتى نظن أن لا يصوم منه، ويصوم حتى نظن أن لا يفطر منه شيئا، وكان لا تشاء تراه من الليل مصليا إلا رأيته، ولا نائما إلا رأيته.»
Anas ibn Malik (may Allah be pleased with him) narrates that the Messenger of Allah ﷺ would sometimes keep leaving off fasting during a month, until we thought that he ﷺ would not fast in that month, and sometimes he would keep fasting until we thought that he ﷺ would not leave off fasting in that month. And at night, if anyone wished to see him ﷺ praying, he would see him (in that state too), and if he wished to see him sleeping, he would see him in that state too.
❀ «عن ابن عباس رضي الله عنها، قال: ما صام النبى صلى الله عليه وسلم كاملا قط غير رمضان، ويصوم حتى يقول القائل: لا والله لا يفطر، ويفطر حتى يقول القائل: لا والله لا يصوم.»
Ibn Abbas (may Allah be pleased with them both) narrates that the Prophet ﷺ never fasted a whole month other than Ramadan. And in the other months, sometimes he ﷺ would keep fasting until the speaker would say: “By Allah! He ﷺ will not leave off fasting,” and (sometimes) he ﷺ would keep leaving off fasting until the speaker would say: “By Allah! He ﷺ will not fast.”