Are women allowed in the Masjid to pray Jum’ah, attend an event or pray in congregation?
The ulema of the Hanafi school have stated it is not permissible for women to attend the congregation of prayer at the mosque. Some have held the position of distinguishing between old and young women and certain prayers within which they can partake, all of these positions have been revised in the Hanafi school due to our corrupt times to the position of being out rightly prohibited.
It is permissible for her to attend a gathering of knowledge or lessons within the mosque if there be a need to do so. For remaining ignorant of the basics of Islam is far worse.
For more detail see: [Q-ID0582] Why were women forbidden from praying in the Masjid?
Allāh knows best.
Answered by Shaykh Naveed Jameel ash-Shaami