Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) said: When a person catches the first rak'ah of Fajr before the sun rises, he should complete his prayer, and when a person catches the first rak'ah of Asr before the sun sets, he should complete his prayer.
Hadith Referenceصحیح ابن حبان / كتاب الصلاة / 1586
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الصحيحة» (66 و 2475): خ نحوه.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح، رجاله رجال الشيخين، الحسين بن محمد: هو ابن بهرام التميمي المروذي، وشيبان: هو ابن عبد الرحمن التميمي مولاهم النحوي، نسبة إلى نحوة، بطن من الأزد، ويحيى: هو ابن أبي كثير.