Abu Hurairah reported,

The Messenger of Allah ﷺ used to observe spiritual retreat during the last ten days of Ramadan and the middle ten days. When he passed away, he was observing twenty days of retreat.

Ahmad 9212

Sahih

حدثنا سليمان بن داود الهاشمي قال حدثنا أبو بكر بن عياش عن أبي حصين عن أبي صالح

عن أبي هريرة قال

كان رسول الله ﷺ يعتكف العشر الأواخر من رمضان والعشر الأواسط فمات حين مات وهو يعتكف عشرين يوما

أحمد 9212صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 9212
Ahmad 9212