Jabir reported: I heard the Messenger of Allah, peace and blessings be upon him, say three days before his death, “None of you should die unless he expects good from Allah.”
Source: Ṣaḥīḥ Muslim 2877
Grade: Sahih (authentic) according to Muslim
عَنْ جَابِرٍ قَالَ سَمِعْتُ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَبْلَ وَفَاتِهِ بِثَلَاثٍ يَقُولُ لَا يَمُوتَنَّ أَحَدُكُمْ إِلَّا وَهُوَ يُحْسِنُ بِاللَّهِ الظَّنَّ
2877 صحيح مسلم كتاب الجنة وصفة نعيمها وأهلها باب الأمر بحسن الظن بالله تعالى عند الموت