Sunan an-Nasa'i, Book 6, Hadith 62 (Nasa'i 557)

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."