The Messenger of Allah (ﷺ) said: He who finds a prostration before sunset or at dawn…

Sahih Muslim Book 5 Hadith 208

Sahih Muslim #609

The Book of Mosques and Places of Prayer 5:208

A'isha reported:

The Messenger of Allah (ﷺ) said: He who finds a prostration before sunset or at dawn (prayer) before the rising (of the sun) he in fact finds that (prayer), and prostration implies a rak'ah.

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

Grade: Sahih