It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Whoever catches one rak'ah of the prayer has caught the prayer."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 1813