It was narrated from Abu Hurairah that the Prophet (ﷺ) said:
"Whoever catches up with one Rak'ah of 'Asr prayer before the sun sets, or catches up with one Rak'ah of Fajr before the sun rises, has caught it."
English reference: Vol. 1, Book 6, Hadith 516
Arabic reference: Book 6, Hadith 520
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.