(19) باب الأَمْرِ بِحُسْنِ الظَّنِّ بِاللَّهِ تَعَالَى عِنْدَ الْمَوْتِ
Jabir b. 'Abdullah al-Ansari reported:
I heard Allah's Messenger (ﷺ) say three days before his death: None of you should die but hoping only good from Allah, the Exalted and Glorious.
Reference: Sahih Muslim 2877 c
In-book reference: Book 53, Hadith 100
USC-MSA web (English) reference(deprecated numbering scheme): Book 40, Hadith 6877
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.