Anas bin Malik reported,

The Prophet ﷺ visited a young man who was dying and asked him, "How do you find yourself?"The young man replied, "Messenger of Allah, I have hope in Allah, and I fear my sins."The Messenger of Allah ﷺ said, "These two do not come together in the heart of a servant in such a moment without Allah granting him what he hopes for and securing him from what he fears."

Ibn Majah 4261

Hasan

حدثنا عبد الله بن الحكم بن أبي زياد حدثنا سيار حدثنا جعفر عن ثابت

عن أنس

أن النبي ﷺ دخل على شاب وهو في الموت فقال كيف تجدك قال أرجو الله يا رسول الله وأخاف ذنوبي فقال رسول الله ﷺ لا يجتمعان في قلب عبد في مثل هذا الموطن إلا أعطاه الله ما يرجو وآمنه مما يخاف

ابن ماجه 4261حسن
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Asceticism
Chapter
Death and preparing for it
Numbering
Darussalam 4261
Ibn Majah 4261