Sunan an-Nasa'i, Book 6, Hadith 21 (Nasa'i 516)

It was narrated from Abu Hurairah, may Allah be pleased with him, that the Prophet (ﷺ) said:

"Whoever catches up with two Rak'ahs of 'Asr prayer before the sun sets, or one Rak'ah of the Subh prayer before the sun rises, has caught it."