Yahya related to me from Malik from Ibn Shihab from Abu Salama ibn Abdar-Rahman from Abu Hurayra that the Messenger of Allah ﷺ said "Whoever catches a raka of the prayer has caught the prayer."
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ مَنْ أَدْرَكَ رَكْعَةً مِنَ الصَّلاَةِ فَقَدْ أَدْرَكَ الصَّلاَةَ