This hadith has been narrated on the authority of Malik and there is no mention of "along with the Imam" and In the hadith transmitted by 'Abdullah the words are: "he in fact finds the entire prayer".
Hadith ReferenceSahih Muslim / The Book of Mosques and Places of Prayer / Hadith: 607