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.
English reference: Vol. 1, Book 6, Hadith 562
Arabic reference: Book 6, Hadith 566
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.