(19) باب الأَمْرِ بِحُسْنِ الظَّنِّ بِاللَّهِ تَعَالَى عِنْدَ الْمَوْتِ
Abdullah b. Umar reported:
I heard Allah's Messenger (ﷺ) as saying: When Allah intends to chastise a people, He chastises all of them then they would be raised according to their deeds.
Reference: Sahih Muslim 2879
In-book reference: Book 53, Hadith 103
USC-MSA web (English) reference(deprecated numbering scheme): Book 40, Hadith 6880