4. The Book of Prayers
٤۔ كتاب الصلاة
The Prophet ﷺ said, "If the wife of anyone of you asks permission to go to the mosque, he should not forbid her."
عَنِ النَّبِيِّ ﷺ إِذَا اسْتَأْذَنَتِ امْرَأَةُ أَحَدِكُمْ إِلَى الْمَسْجِدِ فَلاَ يَمْنَعْهَا
One of the wives of ʿUmar (bin Al-Khattab) used to offer the Fajr and the ʿIsha' prayer in congregation in the Mosque. She was asked why she had come out for the prayer as she knew that ʿUmar disliked it, and he has great ghaira (self-respect). She replied, "What prevents him from stopping me from this act?" The other replied, "The statement of Messenger of Allah ﷺ : 'Do not stop Allah's women-slaves from going to Allah's Mosques' prevents him."
كَانَتِ امْرَأَةٌ لِعُمَرَ تَشْهَدُ صَلاَةَ الصُّبْحِ وَالْعِشَاءِ فِي الْجَمَاعَةِ فِي الْمَسْجِدِ فَقِيلَ لَهَا لِمَ تَخْرُجِينَ وَقَدْ تَعْلَمِينَ أَنَّ عُمَرَ يَكْرَهُ ذَلِكَ وَيَغَارُ قَالَتْ وَمَا يَمْنَعُهُ أَنْ يَنْهَانِي قَالَ يَمْنَعُهُ قَوْلُ رَسُولِ اللَّهِ ﷺ لاَ تَمْنَعُوا إِمَاءَ اللَّهِ مَسَاجِدَ اللَّهِ
Had Messenger of Allah ﷺ known what the women were doing, he would have forbidden them from going to the mosque as the women of Bani Israel had been forbidden. Yahya bin Saʿid (a sub-narrator) asked ʿAmra (another sub-narrator), "Were the women of Bani Israel forbidden?" She replied "Yes."
لَوْ أَدْرَكَ رَسُولُ اللَّهِ ﷺ مَا أَحْدَثَ النِّسَاءُ لَمَنَعَهُنَّ كَمَا مُنِعَتْ نِسَاءُ بَنِي إِسْرَائِيلَ قُلْتُ لِعَمْرَةَ أَوَ مُنِعْنَ قَالَتْ نَعَمْ