"Had the Messenger of Allah ﷺ seen from women what we have seen, he would have barred them from the mosques, just as the Children of Israil barred their women."I asked Amra, "Did the Children of Israil bar their women?"She replied, "Yes."
حدثنا يونس قال حدثنا حماد يعني ابن زيد عن يحيى عن عمرة
لو أن رسول الله ﷺ رأى من النساء ما رأينا لمنعهن من المساجد كما منعت بنو إسرائيل نساءها قلت لعمرة ومنعت بنو إسرائيل نساءها قالت نعم