Abu Salama reported,

I asked Ayesha رضي الله عنها about the fasting of the Messenger of Allah ﷺ, and she said, "He used to fast until we would say he was always fasting, and he would break his fast until we would say he was not fasting at all. I never saw him fast more in any month than he did in Shaban. He used to fast all of Shaban. He used to fast Shaban except for a little."

Muslim 2722

Sahih

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

عن أبي سلمة قال

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

مسلم 2722صحيح
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 2722
Muslim 2722