It is best for a woman to pray in the mosque if there is a beneficial class or exhortation – Shaikh al-Albaani
Shaikh al-Albaani:
“It is best for her to pray in her house, unless there is a class or exhortation in the mosque from which the woman would benefit, then here the ruling switches: it becomes best for her to pray in the mosque. But if there is just prayer (in the mosque), then (her praying) in the house is better. Meaning, if there isn’t anything in the mosque except the congregational prayer, then her praying in her house is better for her than her praying in her mosque – contrary to if there was a class or exhortation in the mosque, then her praying in the mosque is better for her.”
[silsilat ul-hudaa wa nnoor 4/2 / asaheeha translations]