The Messenger of Allah ﷺ said, "Whoever catches one rakah of the Friday prayer or any other prayer has caught the prayer."
حدثنا عمرو بن عثمان بن سعيد بن كثير بن دينار الحمصي حدثنا بقية بن الوليد حدثنا يونس بن يزيد الأيلي عن الزهري عن سالم
قال رسول الله ﷺ من أدرك ركعة من صلاة الجمعة أو غيرها فقد أدرك الصلاة
[Sahih] See no. 707 for its wording, and see no. 1121 for its corroborating narrations. Ibn Hajar graded it sahih in Bulugh Maram.