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:8574Abū al-Ḥasan Muḥammad b. al-Ḥusayn al-ʿAlawī > Abū Naṣr Muḥammad b. Ḥamdawayh b. Sahl al-Fāzī > Maḥmūd b. Ādam al-Marwazī > Sufyān b. ʿUyaynah > Jāmiʿ b. Abū Rāshid > Abū Wāʾil > Ḥudhayfah Liʿabd Allāh / Ibn Masʿūd ʿUkūf Bayn Dārik And Dār Abū Mūsá Waqad ʿAlimt

[Machine] That the Messenger of Allah ﷺ said: "There is no i'tikaf except in the Masjid al-Haram, or he said except in the three mosques." So Abdullah said, "Perhaps you forgot and they have preserved, or you made a mistake and they doubt me."  

البيهقي:٨٥٧٤أَخْبَرَنَا أَبُو الْحَسَنِ مُحَمَّدُ بْنُ الْحُسَيْنِ الْعَلَوِيُّ أنبأ أَبُو نَصْرٍ مُحَمَّدُ بْنُ حَمْدَوَيْهِ بْنِ سَهْلٍ الْفَازِيُّ ثنا مَحْمُودُ بْنُ آدَمَ الْمَرْوَزِيُّ ثنا سُفْيَانُ بْنُ عُيَيْنَةَ عَنْ جَامِعِ بْنِ أَبِي رَاشِدٍ عَنْ أَبِي وَائِلٍ قَالَ قَالَ حُذَيْفَةُ لِعَبْدِ اللهِ يَعْنِي ابْنَ مَسْعُودٍ ؓ عُكُوفًا بَيْنَ دَارِكَ وَدَارِ أَبِي مُوسَى وَقَدْ عَلِمْتُ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ لَا اعْتِكَافَ إِلَّا فِي الْمَسْجِدِ الْحَرَامِ أَوْ قَالَ إِلَّا فِي الْمَسَاجِدِ الثَّلَاثَةِ فَقَالَ عَبْدُ اللهِ لَعَلَّكَ نَسِيتَ وَحَفِظُوا أَوْ أَخْطَأْتَ وَأَصَابُوا الشَّكُّ مِنِّي