The Messenger of Allah ﷺ said, "Whoever loves to meet Allah, Allah loves to meet him, and whoever hates to meet Allah, Allah hates to meet him."We said, "Messenger of Allah, all of us hate death."He replied, "That is not what is meant by hating death. Rather, when the believer is at the point of death, the Bashir comes to him from Allah with news of what he is moving toward, and nothing is dearer to him than to meet Allah, so Allah loves to meet him. But when the wicked, or the disbeliever, is at the point of death, he is brought news of the evil he is moving toward, or the evil he will meet, so he hates to meet Allah, and Allah hates to meet him."
قال رسول الله ﷺ: من أحب لقاء الله أحب الله لقاءه، ومن كره لقاء الله كره الله لقاءه. قلنا: يا رسول الله! كلنا نكره الموت، قال: ليس ذاك كراهية الموت، ولكن المؤمن إذا حضر، جاءه البشير من الله بما هو صائر إليه، فليس شيء أحب إليه من أن يكون قد لقي الله، فأحب الله لقاءه، وإن الفاجر- أو الكافر- إذا حضر جاءه بما هو صائر إليه من الشر- أو ما يلقى من الشر- فكره لقاء الله وكره الله لقاءه.
Ahmad (12047) narrated it from Ibn Abu Adi, from Humayd, from Anas, who related it.Abu Yaala (3877) and Bazzar in Kashf Astar (780) both narrated it, via the route of Humayd, from Anas, who related it, and the wording is Ahmad's. Bazzar's narration is abridged.Haythami mentioned it in Majma (2/320) and said, "Ahmad, Abu Yaala, and Bazzar narrated it, and the men of Ahmad's narration are the men of the Sahih."