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."
English reference: Vol. 1, Book 6, Hadith 515
Arabic reference: Book 6, Hadith 519
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.