The Messenger of Allah (ﷺ) said: He who finds (gets) a rak'ah of the afternoon (prayer)…

Sahih Muslim Book 5 Hadith 211

Sahih Muslim #608 c

The Book of Mosques and Places of Prayer 5:211

Abu Huraira reported:

The Messenger of Allah (ﷺ) said: He who finds (gets) a rak'ah of the afternoon (prayer) before the setting of the sun, he in fact gets (the full prayer), and he who gets a rak'ah of the morning (prayer) before the rising of the sun he in fact gets (the full prayer).

Chapter: The one who catches up with a rak`ah of the prayer, he has caught up with that prayer

Grade: Sahih