I heard the Messenger of Allah ﷺ say three days before his death: No one of you dies but he had good faith in Allah. (Using translation from Abū Dāʾūd 3113)
سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ قَبْلَ مَوْتِهِ بِثَلَاثٍ لَا يَمُوتَنَّ أَحَدُكُمْ إِلَّا وَهُوَ يُحْسِنُ بِاللهِ الظَّنَّ