Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:9212Sulaymān b. Dāwud al-Hāshimī > Abū Bakr b. ʿAyyāsh > Abū Ḥaṣīn > Abū Ṣāliḥ > Abū Hurayrah

Messenger of Allah ﷺ used to practice Iʿtikaf in the last ten days of the month of Ramadan. (Using translation from Bukhārī 2025)  

أحمد:٩٢١٢حَدَّثَنَا سُلَيْمَانُ بْنُ دَاوُدَ الْهَاشِمِيُّ قَالَ أَخْبَرَنَا أَبُو بَكْرِ بْنُ عَيَّاشٍ عَنْ أَبِي حَصِينٍ عَنْ أَبِي صَالِحٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

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


See similar narrations below:

Collected by Ibn Ḥibbān

ذِكْرُ الِاسْتِحْبَابِ لِلْمَرْءِ لُزُومَ الِاعْتِكَافِ فِي شَهْرِ رَمَضَانَ

ibnhibban:3662Muḥammad b. ʿAbd al-Raḥman al-Sāmī > Aḥmad b. Ḥanbal > Ibn Abū ʿAdī > Ḥumayd > Anas

[Machine] "The Messenger of Allah ﷺ used to observe I'tikaf during the last ten nights of Ramadan when he was residing in Mecca. But when he traveled, he would observe I'tikaf for twenty nights in the following year."  

ابن حبّان:٣٦٦٢أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ الرَّحْمَنِ السَّامِيُّ قَالَ حَدَّثَنَا أَحْمَدُ بْنُ حَنْبَلٍ قَالَ حَدَّثَنَا ابْنُ أَبِي عَدِيٍّ عَنْ حُمَيْدٍ عَنْ أَنَسٍ قَالَ

«كَانَ رَسُولُ اللَّهِ ﷺ إِذَا كَانَ مُقِيمًا يَعْتَكِفُ فِي الْعَشْرِ الْأَوَاخِرِ مِنْ رَمَضَانَ فَإِذَا سَافَرَ اعْتَكَفَ مِنَ الْعَامِ الْمُقْبِلِ عِشْرِينَ»  

ذِكْرُ إِبَاحَةِ تَرْكِ الْمَرْءِ الِاعْتِكَافَ فِي شَهْرِ رَمَضَانَ لِعُذْرٍ يَقَعُ

ibnhibban:3664Muḥammad b. ʿAbd al-Raḥman al-Sāmī > Aḥmad b. Ḥanbal > Muḥammad b. Abū ʿAdī > Ḥumayd > Anas b. Mālik

[Machine] The Messenger of Allah ﷺ used to observe Itikaf during the last ten days of Ramadan when he was staying in one place. However, when he traveled, he would observe Itikaf for twenty days in the following year.  

ابن حبّان:٣٦٦٤أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ الرَّحْمَنِ السَّامِيُّ قَالَ حَدَّثَنَا أَحْمَدُ بْنُ حَنْبَلٍ قَالَ حَدَّثَنَا مُحَمَّدُ بْنُ أَبِي عَدِيٍّ عَنْ حُمَيْدٍ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ

كَانَ رَسُولُ اللَّهِ ﷺ إِذَا كَانَ مُقِيمًا يَعْتَكِفُ الْعَشْرَ الْأَوَاخِرَ مِنْ رَمَضَانَ فَإِذَا سَافَرَ اعْتَكَفَ مِنَ الْعَامِ الْمُقْبِلِ عِشْرِينَ