(163) باب انْتِظَارِ النَّاسِ قِيَامَ الإِمَامِ الْعَالِمِ
Narrated `Aisha:
Had Allah's Messenger (ﷺ) known what the women were doing, he would have forbidden them from going to the mosque as the women of Bani Israel had been forbidden. Yahya bin Sa`id (a sub-narrator) asked `Amra (another sub-narrator), "Were the women of Bani Israel forbidden?" She replied "Yes."
Reference: Sahih al-Bukhari 869
In-book reference: Book 10, Hadith 260
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 1, Book 12, Hadith 828