Ayesha reported,

"Had the Messenger of Allah ﷺ seen what women have introduced, he would have barred them from the mosque just as the women of the Children of Israil were barred."I asked Amra, "Were the women of the Children of Israil barred from the mosque?"She replied, "Yes."

Muslim 999

Sahih

حدثنا عبد الله بن مسلمة بن قعنب حدثنا سليمان يعني ابن بلال عن يحيى وهو ابن سعيد عن عمرة بنت عبد الرحمن أنها سمعت

عائشة زوج النبي ﷺ تقول

لو أن رسول الله ﷺ رأى ما أحدث النساء لمنعهن المسجد كما منعت نساء بني إسرائيل قال فقلت لعمرة أنساء بني إسرائيل منعن المسجد قالت نعم

مسلم 999صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Prayer
Chapter
Women going out to the mosques if it does not lead to temptation, and that she should not go out perfumed
Numbering
Darussalam 999
Muslim 999