Sahih al-Bukhari 556
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِذَا أَدْرَكَ أَحَدُكُمْ سَجْدَةً مِنْ صَلاَةِ الْعَصْرِ قَبْلَ أَنْ تَغْرُبَ الشَّمْسُ فَلْيُتِمَّ صَلاَتَهُ، وَإِذَا أَدْرَكَ سَجْدَةً مِنْ صَلاَةِ الصُّبْحِ قَبْلَ أَنْ تَطْلُعَ الشَّمْسُ فَلْيُتِمَّ صَلاَتَهُ "
Narrated Abu Huraira:
Allah's Messenger (ﷺ) said, "If anyone of you can get one rak`a of the `Asr prayer before sunset, he should complete his prayer. If any of you can get one rak`a of the Fajr prayer before sunrise, he should complete his prayer."
Full reference and source
Sahih al-Bukhari 556 In-book : Book 9, Hadith 33 USC-MSA web (English) : Vol. 1, Book 10, Hadith 531 (deprecated)
View source on Sunnah.com (opens in a new tab)