(30) باب خُرُوجِ النِّسَاءِ إِلَى الْمَسَاجِدِ إِذَا لَمْ يَتَرَتَّبْ عَلَيْهِ فِتْنَةٌ وَأَنَّهَا لاَ تَخْرُجُ مُطَيَّبَةً
Ibn 'Umar reported:
'The Messenger of Allah (ﷺ) said: Do not prevent the maid-servants of Allah from going to the mosque.
Reference: Sahih Muslim 442 c
In-book reference: Book 4, Hadith 152
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 886