But if women pray in jamat, especially when out then that is allowed and even preferred according to some. Even if they are home and a jamat is taking place they should join the jamat. See references to Imam Abu Hanifa and Imam Muhammad. Some Masjids I know seem to conflate issues, and think it is forbidden/problematic for women to even pray in jamat even if in the Masjid for a valid reason.
Travelling women performing Ṣalāh behind Imam
A family on a journey stop for Ṣalāh at a local Masjid which has segregated arrangements for women on the balcony of the prayer hall. Can the women perform Ṣalāh behind the local Imam of the Masjid?
بسم الله الرحمن الرحیم
Answer It is permissible, and Masjids should make appropriate arrangements.
[Translation of Arabic reference]:
Imam Muhammad said in al Asl (١/٢٨٧): I said: What is your opinion on a traveller leading women in a journey? He said: I dislike for a man that he leads them in a house in which there is no mahram among them to him. I said: What if he leads them in a congregational masjid or in a house and with him is a woman who is mahram to him. He said: There is no problem with that. I said: What is your opinion on a travelling women leading the women? He said: I dislike that. I said: And if they do this? He said it is accepted from them and she stands in the middle of the row. (End of abridged quote)
And he (Imam Muhammad) said (١/١٦٤): I said: What is your opinion on a man leading women and there are no other men with them? He said: If it is a congregational masjid and salah is established in it and he is an Imam and he begins to pray and there are no men with him, and women enter the salah, then there is nothing wrong with this. But if he is in seclusion with them in a house or in a place other than a masjid then certainly I dislike that for him except if there is among them a mahram to them. (End quote) Allah knows best
Yusuf Shabbir 4 Jumādā al-Ūlā 1440 / 10 January 2019
Approved by: Mufti Shabbir Ahmed and Mufti Muhammad Tahir