I heard the Prophet ﷺ say, three days before his death, "None of you should die except while holding a good opinion of Allah."
سمعت النبي قبل وفاته بثلاث يقول: لا يموتن أحدكم إلا وهو يحسن بالله الظن.
Reported by Muslim in the Book of Paradise (2877), from Yahya bin Yahya, [who said], Yahya bin Zakariya informed us, from Amash, from Abu Sufyan, from Jabir, who narrated it.