It was narrated from Muhammad ibn Muslim that he was asked about a man leading two others in prayer. Imam عليه السلام said: "He should stand in front of them and not between them." And regarding two men praying together in congregation, Imam عليه السلام said: "Yes, he (the one leading) should have the other stand on his right”.