حَدَّثَنَا الْحَسَنُ بْنُ الرَّبِيعِ، حَدَّثَنِي ابْنُ الْمُبَارَكِ، عَنْ مَعْمَرٍ، عَنِ ابْنِ طَاوُسٍ، عَنْ أَبِيهِ، عَنِ ابْنِ عَبَّاسٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏مَنْ أَدْرَكَ مِنَ الْعَصْرِ رَكْعَةً قَبْلَ أَنْ تَغْرُبَ الشَّمْسُ فَقَدْ أَدْرَكَ وَمَنْ أَدْرَكَ مِنَ الْفَجْرِ رَكْعَةً قَبْلَ أَنْ تَطْلُعَ الشَّمْسُ فَقَدْ أَدْرَكَ ‏"
Translation
Abu Hurairah reported the Messenger of Allah (ﷺ) as saying

Whoever catches a rak'ah of the 'Asr prayer before the sun sets has caught it, and whoever catches a rak'ah of the Fajr prayer before the sun rises has caught it.