What Is the Ruling of Praying behind the Masbuq?

If a person joined the congregational Prayer in last rak`ahs and then after Imam finishes th ...