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.
bayhaqi:8571Abū al-Ḥasan ʿAlī b. Aḥmad b. ʿAbdān > Aḥmad b. ʿUbayd al-Ṣaffār > ʿUbayd b. Sharīk > Yaḥyá / Ibn Bukayr > al-Layth > ʿUqayl > Ibn Shihāb > ʿUrwah b. al-Zubayr

[Machine] Narrated Aisha, the wife of Prophet Muhammad, may ﷺ , said that the Prophet used to observe I'tikaf (seclusion for worship) during the last ten days of Ramadan until Allah (God) took him. After him, his wives also observed I'tikaf. The Sunnah (tradition) of I'tikaf is that one should not leave except for necessities and should not return while being sick or have any physical contact with women. And I'tikaf should only be observed in a congregational mosque. The Sunnah for those who observe I'tikaf is to fast.  

البيهقي:٨٥٧١أَخْبَرَنَا أَبُو الْحَسَنِ عَلِيُّ بْنُ أَحْمَدَ بْنِ عَبْدَانَ أنبأ أَحْمَدُ بْنُ عُبَيْدٍ الصَّفَّارُ ثنا عُبَيْدُ بْنُ شَرِيكٍ ثنا يَحْيَى يَعْنِي ابْنَ بُكَيْرٍ ثنا اللَّيْثُ عَنْ عُقَيْلٍ عَنِ ابْنِ شِهَابٍ عَنْ عُرْوَةَ بْنِ الزُّبَيْرِ

عَنْ عَائِشَةَ زَوْجِ النَّبِيِّ ﷺ أَنَّ النَّبِيَّ ﷺ كَانَ يَعْتَكِفُ الْعَشْرَ الْأَوَاخِرَ مِنْ رَمَضَانَ حَتَّى تَوَفَّاهُ اللهُ ﷻ ثُمَّ اعْتَكَفَ أَزْوَاجُهُ مِنْ بَعْدِهِ وَالسُّنَّةُ فِي الْمُعْتَكِفِ أَنْ لَا يَخْرُجَ إِلَّا لِلْحَاجَةِ الَّتِي لَا بُدَّ مِنْهَا وَلَا يَعُودُ مَرِيضًا وَلَا يَمَسُّ امْرَأَةً وَلَا يُبَاشِرُهَا وَلَا اعْتِكَافَ إِلَّا فِي مَسْجِدِ جَمَاعَةٍ وَالسُّنَّةُ فِيمَنِ اعْتَكَفَ أَنْ يَصُومَ  


See similar narrations below:

Collected by Bayhaqī
bayhaqi:8593Muḥammad b. ʿAbdullāh al-Ḥāfiẓ > Abū Bakr b. Isḥāq al-Faqīh > ʿUbayd b. ʿAbd al-Wāḥid > Yaḥyá b. Bukayr > al-Layth > ʿUqayl > Ibn Shihāb > ʿUrwah b. al-Zubayr

[Machine] Aisha, the wife of the Prophet ﷺ , narrated that the Prophet ﷺ used to observe i'tikaf during the last ten days of Ramadan until his death. After him, his wives also observed i'tikaf. The Sunnah (recommended practice) regarding i'tikaf is that one should not leave except for necessary matters that cannot be avoided, should not return while being sick, should not have sexual relations with his wife, and should observe i'tikaf only in a congregation mosque. The Sunnah for those observing i'tikaf is to fast.  

البيهقي:٨٥٩٣أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو بَكْرِ بْنُ إِسْحَاقَ الْفَقِيهُ أنبأ عُبَيْدُ بْنُ عَبْدِ الْوَاحِدِ ثنا يَحْيَى بْنُ بُكَيْرٍ ثنا اللَّيْثُ عَنْ عُقَيْلٍ عَنِ ابْنِ شِهَابٍ عَنْ عُرْوَةَ بْنِ الزُّبَيْرِ

عَنْ عَائِشَةَ زَوْجِ النَّبِيِّ ﷺ أَنَّ النَّبِيَّ ﷺ كَانَ يَعْتَكِفُ الْعَشْرَ الْأَوَاخِرَ مِنْ رَمَضَانَ حَتَّى تَوَفَّاهُ اللهُ ثُمَّ اعْتَكَفَ أَزْوَاجُهُ مِنْ بَعْدِهِ وَالسُّنَّةُ فِي الْمُعْتَكِفِ أَنْ لَا يَخْرُجَ إِلَّا لِحَاجَتِهِ الَّتِي لَا بُدَّ لَهُ مِنْهَا وَلَا يَعُودُ مَرِيضًا وَلَا يَمَسُّ امْرَأَتَهُ وَلَا يُبَاشِرُهَا وَلَا اعْتِكَافَ إِلَّا فِي مَسْجِدِ جَمَاعَةٍ وَالسُّنَّةُ فِيمَنِ اعْتَكَفَ أَنْ يَصُومَ