Ayesha reported,

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

Abu Dawud 569

Sahih

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

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

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

أبو داود 569صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
Strictness regarding that
Numbering
Darussalam 569
Abu Dawud 569