عن ابن عمر رضي الله عنهم، قَالَ: كَانَ رسولُ اللهِ - صلى الله عليه وسلم - يَعْتَكِفُ العَشْرَ الأوَاخِرَ مِنْ رَمَضَانَ. متفقٌ عَلَيْهِ.
It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that he said: The Messenger of Allah (peace and blessings be upon him) used to observe i'tikaf in the last ten days of Ramadan.
(Agreed upon)
وعن عائشة رضي الله عنها: أنَّ النبيَّ - صلى الله عليه وسلم - كَانَ يَعْتَكِفُ العَشْرَ الأوَاخِرَ مِنْ رَمَضَانَ، حَتَّى تَوَفَّاهُ اللهُ تَعَالَى، ثُمَّ اعْتَكَفَ أزْوَاجُهُ مِنْ بَعْدِهِ. متفقٌ عَلَيْهِ.
It is narrated from Sayyidah Aishah (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) used to observe i'tikaf in the last ten days of Ramadan until Allah Almighty took him in death; then his wives (the Mothers of the Believers) continued to observe i'tikaf after him.
(Agreed upon)
وعن أَبي هريرة - رضي الله عنه - قَالَ: كَانَ النبيُّ - صلى الله عليه وسلم - يَعْتَكِفُ في كُلِّ رَمَضَانَ عَشْرَةَ أيَّامٍ، فَلَمَّا كَانَ العَامُ الَّذِي قُبِضَ فِيهِ اعْتَكَفَ عِشْرِينَ يَوْمًا. رواه البخاري.
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that he said: The Prophet (peace and blessings be upon him) used to observe i'tikaf for ten days every Ramadan; then in the year in which he (peace and blessings be upon him) passed away, he (peace and blessings be upon him) observed i'tikaf for twenty days.
(Narrated by al-Bukhari)