Sahih Muslim Book 4, Hadith 150
When women ask permission for going to the mosque, do not prevent them.
I saw men having tied (the ends) of their lower garments around their necks, like children, due to shortage of cloth and offering their prayers behind the Messenger of Allah (ﷺ). One of the proclaimers said: O womenfolk, do not lift your heads till men raise (them).
I heard Allah's Messenger (ﷺ) say: Don't prevent your women from going to the mosque when they seek your permission. Bilal b. 'Abdullah said: By Allah, we shall certainly prevent them. On this'Abdullah b. Umar turned towards him and reprimanded him to harshly as I had never heard him do before. He ('Abdullah b. Umar) said: I am narrating to you that which comes from the Messenger of Allah (ﷺ) and you (have the audicity) to say: By Allah, we shall certainly prevent them.