(30) باب خُرُوجِ النِّسَاءِ إِلَى الْمَسَاجِدِ إِذَا لَمْ يَتَرَتَّبْ عَلَيْهِ فِتْنَةٌ وَأَنَّهَا لاَ تَخْرُجُ مُطَيَّبَةً
Salim narrated it from his father ('Abdullah b. Umar) that the Messenger of Allah (ﷺ) said:
When women ask permission for going to the mosque, do not prevent them. (ID)
Reference (ID): Sahih Muslim 442 a (ID)
In-book reference (ID): Book 4, Hadith 150 (ID)
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 884 (ID)