The Messenger of Allah ﷺ said, "Whoever catches one rakah of the prayer has caught the prayer."
أخبرنا إسحق بن إبراهيم قال حدثنا عبد الله بن إدريس قال حدثنا عبيد الله بن عمر عن الزهري عن أبي سلمة
عن رسول الله ﷺ قال من أدرك من الصلاة ركعة فقد أدركها
Muslim narrated it, hadith no. 707, see the previous hadith narrated from Ubaydullah bin Umar with the same wording, and it is also in Kubra, hadith no. 1536.