كتاب الجنة وصفة نعيمها وأهلها
53  
The Book of Paradise, its Description, its Bounties and its Inhabitants
(19)
Chapter: The Command To Think Positively Of Allah At The Time Of Death
(19)
باب الأَمْرِ بِحُسْنِ الظَّنِّ بِاللَّهِ تَعَالَى عِنْدَ الْمَوْتِ
Sahih Muslim 2878 a

Jabir reported:

I heard Allah's Apostle (ﷺ) as saying. Every servant would be raised (in the same very state) in which he dies.
وَحَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، وَعُثْمَانُ بْنُ أَبِي شَيْبَةَ، قَالاَ حَدَّثَنَا جَرِيرٌ، عَنِ الأَعْمَشِ، عَنْ أَبِي سُفْيَانَ، عَنْ جَابِرٍ، قَالَ سَمِعْتُ النَّبِيَّ صلى الله عليه وسلم يَقُولُ ‏ "‏ يُبْعَثُ كُلُّ عَبْدٍ عَلَى مَا مَاتَ عَلَيْهِ ‏"‏ ‏.‏
Reference : Sahih Muslim 2878a
In-book reference : Book 53, Hadith 101
USC-MSA web (English) reference : Book 40, Hadith 6878
  (deprecated numbering scheme)