‘Amrah bint Abdur Rahman reported: Aisha, may Allah be pleased with her, said, “Were the Messenger of Allah, peace and blessings be upon him, to see what women are now doing, he would have prevented them from attending the mosque, just as the women of the children of Israel were prevented from attending.”
Source: Ṣaḥīḥ Muslim 445
Grade: Sahih (authentic) according to Muslim
عَنْ عَمْرَةَ بِنْتِ عَبْدِ الرَّحْمَنِ عن عائشة رضي الله عنها قالت لَوْ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ رَأَى مَا أَحْدَثَ النِّسَاءُ لَمَنَعَهُنَّ الْمَسْجِدَ كَمَا مُنِعَتْ نِسَاءُ بَنِي إِسْرَائِيلَ
445 صحيح مسلم كتاب الصلاة باب خروج النساء إلى المساجد إذا لم يترتب عليه فتنة وأنها لا تخرج مطيبة