Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) narrates: I heard the Prophet Muhammad (peace be upon him) say, three days before his passing: "No person should die except while assuming good of Allah, the Exalted." (That is, every one of you should have good expectations from Allah, the Exalted, at the time of death.)
Hadith Referenceصحیح ابن حبان / كتاب الرقائق / 638
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - انظر ما قبله.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط مسلم.