Hadhrat Humaidah Al-Sa’idi (رضى الله عنها) asked the holy Prophet Muhammad (صلى الله عليه وسلم), O Prophet of Allah! Should I offer salah behind you or at home? The holy Prophet Muhammad (صلى الله عليه وسلم) said that it was far better for a woman to offer her salah inside the room of her home. After that day Hadhrat Humaid al-Sa’idi never came in the mosque of Prophet, and always kept on offering salah at her home, and sacrificed the virtues and blessings of offering salah behind the holy Prophet Muhammad (صلى الله عليه وسلم) in Masjid-e-Nabwi. This is the ruling according to majority of Ulama. However, if sometime a woman offers five times salah or Jumuah salah behind male Imam behind curtain then her salah shall be alright but it is not better. In the light of said hadith it is better for women to offer salah in their homes individually. It carries more reward for them.
Allah (Subhana Wa Ta’ala) knows Best
Darul Uloom Deoband