He who finds one rak'ah of the prayer with the Imam, he in fact finds the prayer.

Sahih Muslim Book 5 Hadith 206

Sahih Muslim #607 b

The Book of Mosques and Places of Prayer 5:206

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.

Chapter: The one who catches up with a rak`ah of the prayer, he has caught up with that prayer

Grade: Sahih