Jabir bin Abdullah 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."

Abu Dawud 3113

Sahih

حدثنا مسدد حدثنا عيسى بن يونس حدثنا الأعمش عن أبي سفيان

عن جابر بن عبد الله قال

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

أبو داود 3113صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Funerals
Chapter
What is recommended of having good thoughts about Allah at the time of death
Numbering
Darussalam 3113
Abu Dawud 3113