Abu Hurairah reported,

The Prophet ﷺ said, "If one of you reaches the first prostration of the afternoon prayer before the sun sets, let him complete his prayer. And if he reaches the first prostration of the dawn prayer before the sun rises, let him complete his prayer."

Nasai 517

Sahih

أخبرنا عمرو بن منصور قال حدثنا الفضل بن دكين قال حدثنا شيبان عن يحيى عن أبي سلمة

عن أبي هريرة

عن النبي ﷺ قال إذا أدرك أحدكم أول سجدة من صلاة العصر قبل أن تغرب الشمس فليتم صلاته وإذا أدرك أول سجدة من صلاة الصبح قبل أن تطلع الشمس فليتم صلاته

النسائي 517صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Times of prayer
Chapter
Whoever catches two rakahs of Asr
Numbering
Darussalam 517
Nasai 517