Sunan Abi Dawud 569
‘A’ishah (Allah be pleased with her), wife of the prophet (ﷺ), said ; if the Messenger of Allah (ﷺ) had seen what the women have invented, he would have prevented them from visiting the mosque (for praying), as the women of the children of  the Israel were prevented. Yahya (the narrator) said; I asked ‘Umrah ; were the women of Israel prevented? She said:
yes.
حَدَّثَنَا الْقَعْنَبِيُّ، عَنْ مَالِكٍ، عَنْ يَحْيَى بْنِ سَعِيدٍ، عَنْ عَمْرَةَ بِنْتِ عَبْدِ الرَّحْمَنِ، أَنَّهَا أَخْبَرَتْهُ أَنَّ عَائِشَةَ زَوْجَ النَّبِيِّ صلى الله عليه وسلم قَالَتْ لَوْ أَدْرَكَ رَسُولُ اللَّهِ صلى الله عليه وسلم مَا أَحْدَثَ النِّسَاءُ لَمَنَعَهُنَّ الْمَسْجِدَ كَمَا مُنِعَهُ نِسَاءُ بَنِي إِسْرَائِيلَ ‏.‏ قَالَ يَحْيَى فَقُلْتُ لِعَمْرَةَ أَمُنِعَهُ نِسَاءُ بَنِي إِسْرَائِيلَ قَالَتْ نَعَمْ ‏.‏