The placement when there are two men and an ambiguous hermaphrodite.
Chapter on Imamate and Congregational Prayer
Al-Mughni
Book of Prayer
Primary text
If there is another man present with them (Imam, Man 1, Khuntha), the three of them stand in a row behind the Imam, based on the principle established previously.