We set out until we came to the Prophet of Allah (PBUH), so we pledged allegiance to him and prayed behind him. Then, he saw a man praying behind the rows alone, so the Prophet of Allah (PBUH) stood beside him until he finished, then he told him: Repeat your prayer. There is no prayer for the one behind the row.