I heard Messenger of Allah ﷺ say three days before his death: None of you should die but hoping only good from Allah, the Exalted and Glorious. (Using translation from Muslim 2877c)
سَمِعْتُ رَسُولَ اللهِ ﷺ قَبْلَ مَوْتِهِ بِثَلَاثَةِ أَيَّامٍ يَقُولُ لَا يَمُوتَنَّ أَحَدُكُمْ إِلَّا وَهُوَ يُحْسِنُ الظَّنَّ بِرَبِّهِ