(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.
Reference: Sahih Muslim 442 a
In-book reference: Book 4, Hadith 150
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 884