The Prophet of Allah ﷺ said, "Whoever catches one rakah of the Fajr prayer before sunrise has caught the prayer, and whoever catches one rakah of the Asr prayer before sunset has caught the prayer."
حدثنا عبد الأعلى عن معمر عن الزهري عن أبي سلمة بن عبد الرحمن بن عوف
أن نبي الله ﷺ قال من أدرك ركعة من صلاة الفجر قبل أن تطلع الشمس فقد أدركها ومن أدرك ركعة من صلاة العصر قبل أن تغرب الشمس فقد أدركها