I heard 'A'isha, the wife of the Messenger of Allah ﷺ. say: If the Messenger of Allah ﷺ had seen what new things the women have introduced (in their way of life) he would have definitely prevented them from going to the mosque, as the women of BaniIsra'il were prevented.
أَنَّهَا سَمِعَتْ عَائِشَةَ زَوْجَ النَّبِيِّ ﷺ تَقُولُ لَوْ أَنَّ رَسُولَ اللَّهِ ﷺ رَأَى مَا أَحْدَثَ النِّسَاءُ لَمَنَعَهُنَّ الْمَسْجِدَ كَمَا مُنِعَتْ نِسَاءُ بَنِي إِسْرَائِيلَ قَالَ فَقُلْتُ لِعَمْرَةَ أَنِسَاءُ بَنِي إِسْرَائِيلَ مُنِعْنَ الْمَسْجِدَ قَالَتْ نَعَمْ