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.
سَمِعْتُ رَسُولَ اللَّهِ ﷺ قَبْلَ مَوْتِهِ بِثَلاَثَةِ أَيَّامٍ يَقُولُ لاَ يَمُوتَنَّ أَحَدُكُمْ إِلاَّ وَهُوَ يُحْسِنُ الظَّنَّ بِاللَّهِ ﷻ