Narrated Abu Hurairah: Allah’s Messenger, peace be upon him, said, “If anyone of you got (or was able to pray) one Rak’ah of the Asr prayer before sunset, he should complete his Salat.

If anyone of you got (or was able to pray) one Rak’ah of the Fajr prayer before sunrise, he should complete his Salat.
[I: 531 O. B. Sahih Al-Bukhari]