It was narrated from Abu Hurairah that the Prophet (ﷺ) said:
"Whoever catches up with a Rak'ah of the prayer, then he has caught up with the prayer."
English reference: Vol. 1, Book 6, Hadith 556
Arabic reference: Book 6, Hadith 560
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.