It is narrated from Abu Huraira (may Allah be pleased with him) that the Prophet (peace be upon him) said: "Whoever catches one rak'ah of Fajr before the sun rises has caught the Fajr prayer, and whoever catches one rak'ah of Asr before the sun sets has caught the Asr prayer."
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 149
Hadith Takhrijاخرجه البخاري مواقيت الصلاة، باب من أدرك من الفجر ركعة (579) و مسلم، المساجد، باب من ادرك ركعة من الصلاة فقد ادرك تلك الصلاة (608).