Yahya related to me from Malik from Yahya ibn Said from Amra bintAbd ar-Rahman that A'isha, the wife of the Prophet, may Allah blesshim and grant him peace, said, "If the Messenger of Allah, may Allahbless him and grant him peace, had seen what women do now, he wouldhave forbidden them to go into the mosques, just as the women of theBani Israil were forbidden."Yahya ibn Said said that heasked Amra, "Were the women of the Bani Israil forbidden to go intothe mosques?" and she said, "Yes."
USC-MSA web (English) reference: Book 14, Hadith 15
Arabic reference: Book 14, Hadith 472