I heard the Messenger of Allah ﷺ say, "No one who prays before sunrise and before sunset will enter the Fire," meaning the Fajr and Asr prayers.A man from the people of Basra said to him, "Did you yourself hear this from the Messenger of Allah ﷺ?"He replied, "Yes."The man said, "And I too bear witness that I heard it from the Messenger of Allah ﷺ. My ears heard it, and my heart retained it."
سمعت رسول الله ﷺ يقول: لن يلج النار أحد صلى قبل طلوع الشمس وقبل غروبها. يعني الفجر والعصر. فقال له رجل من أهل البصرة: أنت سمعت هذا من رسول الله ﷺ، قال: نعم. قال الرجل: وأنا أشهد أني سمعته من رسول الله ﷺ سمعته أذناي، ووعاه قلبي.
Muslim reported it in "The Mosques" (634) through several routes from Abu Bakr bin Umarah bin Ruaybah, from his father, who said, and then he mentioned it.His saying, "that you may be pleased," is like His saying, "and your Lord will surely give you, and you will be pleased" [Duha 93:5].