BAYHAQI 6567:
from Jābir b. ʿAbdullāh —
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)
البيهقي ٦٥٦٧:
عن جابر بن عبد الله —
سَمِعْتُ رَسُولَ اللهِ ﷺ قَبْلَ مَوْتِهِ بِثَلَاثَةِ أَيَّامٍ يَقُولُ لَا يَمُوتَنَّ أَحَدُكُمْ إِلَّا وَهُوَ حَسَنُ الظَّنِّ بِاللهِ ﷻ