´Thabit narrated from Anas, that:` The Prophet entered upon a young man while he was dying. So he said: "How do you feel?" He said: "By Allah! O Messenger of Allah! Indeed I hope in Allah and I fear from my sins." So the Messenger of Allah said: "These two will not be gathered in a worshipper's heart at a time such as this, except that Allah will grant him what he hopes and make him safe from what he fears."
Related hadith on this topic
Explanation & Benefits
Maulana Ataullah Sajid
Benefits and Issues:
➊ Visiting a sick person and inquiring about his well-being is Sunnah. This is especially emphasized when the condition of the patient is such that the end seems near.
➋ At the time of death, a servant should keep both hope and fear in view. However, the aspect of hope should be predominant.
➌ If a servant’s heart contains both hope and fear, then he attains the mercy of Allah, and in this way, he is granted protection from the wrath of Allah.
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 4261