Position of a woman praying behind an Imam leading a man
Chapter on Imamate and Congregational Prayer
Al-Mughni
Book of Prayer
Primary text
If the Imam leads a man, the woman stands behind him. If a man is present with the Imam, the man stands to his right, and the woman stands behind them. If two men are present, they stand behind the Imam, and the woman stands behind them.
Supporting text
If one of the two men is a boy and the prayer is voluntary, the man and the boy stand behind the Imam, and the woman stands behind them. If it is obligatory, the previously mentioned arrangement applies. If the woman stands in the row with them in these allowed positions, her prayer and theirs are valid, as established previously.