Source: HadeethEnc.com, English v1.25.0
Arabic text
عن أبي هريرة رضي الله عنه قال: كان النبي صلى الله عليه وسلم يعتكف في كل رمضان عشرة أيام، فلما كان العام الذي قُبِضَ فيه اعتكف عشرين يوماً.
Translation
Abu Hurayrah (may Allah be pleased with him) reported: The Prophet (may Allah's peace and blessings be upon him) used to observe I‘tikāf during each Ramadan for ten days. The year in which he died, he observed I‘tikāf for twenty days.
Explanation
The Prophet (may Allah's peace and blessings be upon him) used to confine himself to the mosque to worship Allah for ten days in each Ramadan, particularly the middle ten nights of the month, with the hope that he would observe Laylat al-Qadr [Night of Decree] in those days. When he knew that the Night of Decree was in the last ten nights, he confined himself during those ten nights. The year in which he died, he secluded himself for twenty days to worship Allah Almighty more, and to get even closer to Him.
Explanation: العربية
كان النبيُّ -عليه الصلاة والسلام- يلزمُ المسجدَ مُنقطِعَاً لعبادة الله في كل رمضان عشرة أيامٍ، وكان يعتكف في العشر الأوسط منه رجاء إدراك ليلة القدر، فلما عَلِمَ أنها في العشر الأواخر منه اعتكفها، ثم اعتكف في العام الذي ماتَ فِيهِ عِشرين يوماً زيادة في الطاعة والتقرب لله تعالى .
- جواز الاعتكاف أكثر ِمن عشرة أيام وقبل العشر الأواخر من رمضان.
- حرص النبِي -عليه السلام- على اعتكاف العشر الأواخر من رمضان.
- مشروعية الازدياد من الطاعة والعبادة في آخر العمر ليختم للعبد بخير.