Abu Hurairah reported,

The Messenger of Allah ﷺ said, "If any of you catches a single prostration of the afternoon prayer before the sun sets, let him complete his prayer, and if he catches a single prostration of the dawn prayer before the sun rises, let him complete his prayer."

Bukhari 556

Sahih

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

عن أبي هريرة قال

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

البخاري 556صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer times
Chapter
Whoever catches one rakat of Asr before sunset
Numbering
Darussalam 556
Bukhari 556