Sunan an-Nasa'i
Grading supplied with this record: Sahih (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ أَدْرَكَ سَجْدَةً مِنَ الصُّبْحِ قَبْلَ أَنْ تَطْلُعَ الشَّمْسُ فَقَدْ أَدْرَكَهَا وَمَنْ أَدْرَكَ سَجْدَةً مِنَ الْعَصْرِ قَبْلَ أَنْ تَغْرُبَ الشَّمْسُ فَقَدْ أَدْرَكَهَا "
It was narrated from Abu Hurairah that the Prophet (ﷺ) said:
"Whoever catches up with a prostration of Subh before the sun rises, then he has caught up with it; and whoever catches up with a prostration of 'Asr before the sun sets, then he has caught up with it."
Full reference and source
Sunan an-Nasa'i English : Vol. 1, Book 6, Hadith 551 Arabic : Book 6, Hadith 555
View source on Sunnah.com (opens in a new tab)