Sahih Muslim, Book 5, Hadith 206 (Muslim 1359)

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.