Sunan an-Nasa'i, Volume 1, Book 6, Hadith 516 (DarusSalam)

It was narrated from Abu Hurairah that the Prophet said: "Whoever catches up with one Rak'ah of 'Asr prayer before the sun sets, or catches up with one Rak'ah of Fajr before the sun rises, has caught it."

أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ الأَعْلَى، قَالَ حَدَّثَنَا مُعْتَمِرٌ، قَالَ سَمِعْتُ مَعْمَرًا، عَنِ الزُّهْرِيِّ، عَنْ أَبِي سَلَمَةَ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ مَنْ أَدْرَكَ رَكْعَةً مِنْ صَلاَةِ الْعَصْرِ قَبْلَ أَنْ تَغِيبَ الشَّمْسُ أَوْ أَدْرَكَ رَكْعَةً مِنَ الْفَجْرِ قَبْلَ طُلُوعِ الشَّمْسِ فَقَدْ أَدْرَكَ ‏" ‏ ‏.‏

sunnah.com

also referenced under: Book 6, Hadith 520 (In-Book)