The Messenger of Allah ﷺ said, "Whoever catches one rakah of the prayer has caught the prayer."
أخبرني شعيب بن شعيب بن إسحق قال حدثنا أبو المغيرة قال حدثنا الأوزاعي عن الزهري عن سعيد بن المسيب
قال رسول الله ﷺ من أدرك من الصلاة ركعة فقد أدركها
[Sahih] It is also in Sunan al-Kubra (Nasai), no. 1539. Nasai said, "We do not know of anyone who agreed with Mughira in his saying, from Saeed bin Musayab from Abu Hurairah. The correct version is from Abu Salama from Abu Hurairah." This defect does not undermine the hadith, and it has very many corroborating narrations.