Jabir bin Abdullah reported,

Jabir reported, "I heard the Messenger of Allah ﷺ say three days before his death, 'None of you should die except while holding a good opinion of Allah.'"

Azami 979

Sahih

عن جابر بن عبد الله الأنصاري قال

سمعت رسول الله ﷺ قبل وفاته بثلاث يقول: لا يموتن أحدكم إلا وهو يحسن بالله الظن.

الأعظمي 979صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the Last Day
Section
One is resurrected upon what he died upon
Numbering
Jami al-Kamil 979 (2nd edition)
Azami 979