Sayyiduna Anas (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "Whoever loves to come into the presence of Allah Almighty, Allah Almighty also loves his coming into His presence, and whoever dislikes coming into the presence of Allah Almighty, Allah Almighty also dislikes his coming into His presence." I said: "O Messenger of Allah! All of us dislike death." The Prophet (peace and blessings be upon him) said: "That does not mean disliking death. Rather, when the final moment of the believer draws near, a bearer of glad tidings comes to him from Allah Almighty. At that time nothing is more beloved to the believer than coming into the presence of Allah Almighty, so he loves coming into the presence of Allah Almighty. And when the final moment of the wicked person and the disbeliever draws near, there comes to him the evil towards which he is to go (the narrator is unsure; perhaps the words are:) the evil which he is to face, so he dislikes coming into the presence of Allah Almighty, and Allah Almighty also dislikes his coming into His presence."
Ahmad, Abu Ya'la and al-Bazzar recorded it. The narrators of Ahmad are the narrators of the Sahih.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الجنائز / 3899