(30) باب خُرُوجِ النِّسَاءِ إِلَى الْمَسَاجِدِ إِذَا لَمْ يَتَرَتَّبْ عَلَيْهِ فِتْنَةٌ وَأَنَّهَا لاَ تَخْرُجُ مُطَيَّبَةً
'Amra, daughter of Abd al-Rahmin, reported:
I heard 'A'isha, the wife of the Messenger of Allah (ﷺ). say: If the Messenger of Allah (ﷺ) had seen what new things the women have introduced (in their way of life) he would have definitely prevented them from going to the mosque, as the women of BaniIsra'il were prevented.
Reference: Sahih Muslim 445 a
In-book reference: Book 4, Hadith 161
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 895