The Prophet ﷺ said, "Whoever catches a single prostration of the dawn prayer before the sun rises has caught the prayer, and whoever catches a single prostration of the afternoon prayer before the sun sets has caught the prayer."
أخبرنا إبراهيم بن محمد ومحمد بن المثنى واللفظ له قالا حدثنا يحيى عن عبد الله بن سعيد قال حدثني عبد الرحمن الأعرج
عن النبي ﷺ قال من أدرك سجدة من الصبح قبل أن تطلع الشمس فقد أدركها ومن أدرك سجدة من العصر قبل أن تغرب الشمس فقد أدركها
Sahih. Ahmad reported it in 2/474 from Yahya bin Saeed Qattan through this same chain, and Ibn Khuzayma graded it sahih, no. 985. It is also found in Kubra, no. 1535. Bukhari reported it, no. 579, and Muslim, no. 608, from the hadith of Araj through this same chain.