Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever catches one rakah of the Asr prayer before the sun sets has caught the prayer, and whoever catches one rakah of the Fajr prayer before the sun rises has caught the prayer."

Ibn Majah 699

Sahih

حدثنا محمد بن الصباح حدثنا عبد العزيز بن محمد الدراوردي أخبرني زيد بن أسلم عن عطاء بن يسار وعن بسر بن سعيد وعن الأعرج يحدثونه

عن أبي هريرة

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

ابن ماجه 699صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Prayer
Chapter
Prayer times during excuses and necessity
Numbering
Darussalam 699
Ibn Majah 699