the Prophet said: "Whoever catches a Rak'ah of Subh before the sun has risen, then he has caught Subh. Whoever catches a Rak'ah of Asr before the sun has set, then he has caught Asr."
Jami` at-Tirmidhi Book 2, Hadith 38