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.