The World Federation One Stop Fiqh

Ruling 1393

If the rows of a congregation extend to the mosque’s door, the prayer of someone standing in front of the door behind the row is valid. Also, the prayer of those who follow behind him is valid. In fact, the prayer of those standing on either side and are linked to the congregation by means of another follower is also valid.