Sahih Muslim, Book 6, Hadith 351 (Muslim 1906)

Abu Sa'id al-Khudri reported Allah's Messenger (ﷺ) as saying:

No prayer is valid after the 'Asr prayer till the sun sets and no prayer is valid after the dawn prayer till the sun rises.