Please contribute generously in order to ensure the continuity of our website InshaAllah.
Praise be to Allah.
If a person joins you wanting to pray with you, and you make the intention of leading him in prayer, this is OK.
The author of the book Nihaayat al-Zayn fi Irshaad al-Mubtadieen (p. 127) said: If the imaam says salaam then one latecomer decides to follow another latecomer in prayer, this is OK.
And Allah knows best.