According to the Sunnah (whatever is reported from the Prophet), the Imam should stand in front of the Ma’mums when the congregation consists of three persons or more. The Prophet (peace be upon him) made
Jabbar stand behind him when he led them in Salah. He (peace be upon him) also made Anas and the orphan stand behind him when he led them in Salah. However,
the Prophet (peace be upon him) ordered that if the Ma'mum is one person, he should stand to the right of the Imam. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.