I heard the Messenger of Allah ﷺ saying: He who observes prayer before the rising of the sun and its setting, i.e. the dawn prayer and the afternoon prayer, would not enter the (Hell) fire. A person belonging to Basra said to him: Did you yourself hear it from the Messenger of Allah ﷺ? He said: Yes. The person (from Basra) said: I bear witness that I heard it from the Messenger of Allah ﷺ; my ears heard it and my heart retained it.
سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ لَنْ يَلِجَ النَّارَ أَحَدٌ صَلَّى قَبْلَ طُلُوعِ الشَّمْسِ وَقَبْلَ غُرُوبِهَا يَعْنِي الْفَجْرَ وَالْعَصْرَ فَقَالَ لَهُ رَجُلٌ مِنْ أَهْلِ الْبَصْرَةِ آنْتَ سَمِعْتَ هَذَا مِنْ رَسُولِ اللَّهِ ﷺ قَالَ نَعَمْ قَالَ الرَّجُلُ وَأَنَا أَشْهَدُ أَنِّي سَمِعْتُهُ مِنْ رَسُولِ اللَّهِ ﷺ سَمِعَتْهُ أُذُنَاىَ وَوَعَاهُ قَلْبِي