Sahih Muslim
607.01

Abu Huraira reported the Messenger of Allah (ﷺ) as saying:He who finds a rak'ah of the prayer, he in fact finds the prayer

607.02

Abu Huraira reported the Messenger of Allah (ﷺ) as saying:He who finds one rak'ah of the prayer with the Imam, he in fact finds the prayer

607.03

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