Sayyiduna Abu Hurairah (may Allah be pleased with him) narrated that the Messenger of Allah (peace and blessings be upon him) said: "Whoever catches one rak'ah of a prayer has caught the (congregational) prayer."
It is narrated from another chain from Sayyiduna Abu Hurairah, may Allah be pleased with him, in a similar manner.
It is narrated from Sayyiduna Abu Hurairah, may Allah be pleased with him, that the Messenger of Allah, peace and blessings be upon him, said: “Whoever catches one rak‘ah of the Fajr prayer before the sun rises, he has attained the (reward of) Fajr prayer (in congregation), and whoever catches one rak‘ah of the ‘Asr prayer before the sun sets, he has attained the (reward of) ‘Asr prayer (in congregation).”