It was narrated from Abu Hurairah that the Prophet (ﷺ) forbade praying after 'Asr until the sun had set, and after Subh until the sun had risen.
Sunan an-Nasa'i Book 6, Hadith 68