Please contribute generously in order to ensure the continuity of our website InshaAllah.
Praise be to Allah.
That is not prescribed in sharee’ah, unless he was listening to the recitation purposefully, in which case he could prostrate with the imam even though he was not praying behind him. But if his intention was to join the imam and pray behind him, then what he did was an invalid action.