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.