‘Abd Allah (b. Mas’ud) reported the prophet ﷺ as saying; it is more excellent for a woman to pray in her house than in her courtyard, and more excellent for her to pray in her private chamber than in her house.
عَنِ النَّبِيِّ ﷺ قَالَ صَلاَةُ الْمَرْأَةِ فِي بَيْتِهَا أَفْضَلُ مِنْ صَلاَتِهَا فِي حُجْرَتِهَا وَصَلاَتُهَا فِي مَخْدَعِهَا أَفْضَلُ مِنْ صَلاَتِهَا فِي بَيْتِهَا