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:5250[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Baḥr b. Naṣr > Quriʾ > Ibn WahbḤaddathak Mālik b. Anas > Ghayr Wāḥid Mimman Athiq Bih [Chain 2] Abū Aḥmad al-Mihrajānī > Abū Bakr b. Jaʿfar > Muḥammad b. Ibrāhīm > Ibn Bukayr > Mālik > al-Thiqah ʿIndah

[Machine] "People used to enter the rooms of the Prophet's wives after the Prophet's death and they would pray Jumu'ah there. The mosque would become crowded, so they would expand it by utilizing the rooms of the Prophet's wives. However, these rooms are not considered part of the mosque, but rather the doors leading to them are within the mosque. Malik said, 'Whoever prays in any area that is connected to the mosque, whether it is within the mosque itself or in its immediate vicinity, it is sufficient and this has always been the practice of the people and no one from the scholars has objected to it.' Malik continued, 'As for a closed-off house that can only be entered with permission, it is not appropriate for anyone to pray there with the congregation on Jumu'ah, even if it is nearby, because it does not belong to the mosque.'"  

البيهقي:٥٢٥٠أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا بَحْرُ بْنُ نَصْرٍ قَالَ قُرِئَ عَلَى ابْنِ وَهْبٍ حَدَّثَكَ مَالِكُ بْنُ أَنَسٍ قَالَ حَدَّثَنِي غَيْرُ وَاحِدٍ مِمَّنْ أَثِقُ بِهِ ح وَأَخْبَرَنَا أَبُو أَحْمَدَ الْمِهْرَجَانِيُّ أنبأ أَبُو بَكْرِ بْنُ جَعْفَرٍ ثنا مُحَمَّدُ بْنُ إِبْرَاهِيمَ ثنا ابْنُ بُكَيْرٍ ثنا مَالِكٌ عَنِ الثِّقَةِ عِنْدَهُ

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