Sahih al-Bukhari, Book 9, Hadith 55 (Bukhari 566)

Narrated Abu Huraira:

Allah's Messenger (ﷺ) said, "Whoever could get one rak`a (of the Fajr prayer) before sunrise, he has got the (morning) prayer and whoever could get one rak`a of the `Asr prayer before sunset, he has got the (`Asr) prayer."