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.