It is narrated from Sayyidah Aishah (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) used to fast the whole month of Sha'ban. She said: I said: "O Messenger of Allah (peace and blessings be upon him), are the fasts of Sha'ban the dearest to you of all the months?" He (peace and blessings be upon him) said: "Indeed, Allah Almighty writes (the decree of death) for every soul that will die in that year, so I love that when my appointed time comes, I am fasting."
Imam Abu Ya'la recorded it with a hasan (good) chain, and this narration is also found in the Sahih (al-Bukhari and Muslim) and elsewhere with a context other than this one.
Hadith Takhrij«رواه أبو يعلى بإسناد حسن، وهو في الصحيح وغيره بغير هذا السياق» «أخرجه صحيح البخاري برقم: 1869، وأخرجه صحيح مسلم برقم: 1156، وأخرجه سنن النسائي برقم: 2356، وأخرجه سنن أبي داود برقم: 2434، وأخرجه سنن ابن ماجه برقم: 1710، وأخرجه مسند أحمد برقم: 25592، وأخرجه موطأ مالك برقم: 688، وأخرجه فتح الباري برقم: 1886، وأخرجه المعجم الأوسط للطبراني برقم: 3178، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 4552، 4553»