I heard the Messenger of Allah ﷺ say, "No one who prays before sunrise and before sunset will enter the Fire."
أخبرنا محمود بن غيلان قال حدثنا وكيع قال حدثنا مسعر وابن أبي خالد والبختري بن أبي البختري كلهم سمعوه من
سمعت رسول الله ﷺ يقول لن يلج النار من صلى قبل طلوع الشمس وقبل غروبها
Muslim narrated it, Mosques, chapter on the merit of the two prayers of dawn and Asr and maintaining them regularly, hadith no. 634, from the hadith of Waki through this route, and it is also in Al-Kubra, hadith no. 354.