Sunan an-Nasa'i, Book 6, Hadith 61 (Nasa'i 556)

It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:

"Whoever catches up with a Rak'ah of the prayer, then he has caught up with it."