ANSWER:

What you had done was wrong!

You both must stand exactly beside each other in the same row and you must stand to the right side of the imam.

QUESTION: Me and my friend prayed in congregation together as two people total. I prayed to the left of him and slightly behind and he is to the right of me, he is the Imam. Is this position correct when praying together as two people. Is my prayer valid? Do I need to repeat my prayer?

Prayer |