Sunan an-Nasa'i, Book 6, Hadith 63 (Nasa'i 558)

It was narrated that Abu Hurairah said:

"The Messenger of Allah (ﷺ) said: 'Whoever catches up with a Rak'ah of the prayer has caught up with it."