The religious authority clarified that a woman praying in congregation with her husband at home should stand behind him in a separate row if the space allows, whether alone or with other women. Standing beside him due to limited space is discouraged but does not invalidate the prayer.
For men and boys, scholars agree that the follower stands to the right of the imam when praying together. This is confirmed in the hadith of Abdullah ibn Abbas: “I prayed with the Prophet ﷺ on his left side, but he guided me to stand on his right.” Similar reports from Jabir ibn Abdullah emphasize the importance of this arrangement.
For women, the rule differs: they should not stand on the right side of their husband. Anas ibn Malik narrated that his grandmother, Mulayka, stood behind the Prophet ﷺ during prayer, establishing the practice and its permissibility. Women may stand one or two steps behind their husbands, ensuring that their heads do not precede theirs during sujood, keeping the prayer valid.
Scholarly opinions vary regarding standing beside the imam or husband:
-
Maliki, Shafi’i, and Hanbali schools: Standing behind the imam is the proper arrangement; standing beside him is disliked but does not invalidate the prayer.
-
Hanafi school: If a woman stands beside her husband while he leads the prayer, it may invalidate the congregation because the prescribed order of rows is men, then boys, then women.
Therefore, women are recommended to stand behind their husbands as much as possible, maintaining the proper order of rows for congregational prayer while ensuring the validity of the prayer even if precise alignment is not possible.



