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 approached by the Bashir from Allah with news of what awaits him, nothing is more beloved to him than to meet Allah, so Allah loves to meet him. But when the wicked person, or the disbeliever, is approached at his death with news of the evil that awaits him, or the evil he is about to encounter, he hates to meet Allah, and Allah hates to meet him."
قال رسول الله ﷺ: من أحب لقاء الله، أحب الله لقاءه، ومن كره لقاء الله، كره الله لقاءه. قلنا: يا رسول الله، كلنا نكره الموت، قال: ليس ذاك كراهية الموت، ولكن المؤمن إذا جاءه البشير من الله بما هو صائر إليه، فليس شيء أحب إليه من أن يكون قد لقي الله، فأحب الله لقاءه، وإن الفاجر- أو الكافر- إذا حضر جاءه بما هو صائر إليه من الشر- أو ما يلقى من الشر- فكره لقاء الله وكره الله لقاءه.
Ahmad (12047) narrated it from Ibn Abu Adi, from Humayd, from Anas, as mentioned. Abu Yaala (3877) and Bazzar in Kashf Astar (780) both narrated it via Humayd, from Anas, as mentioned. The wording given is Ahmad's, and Bazzar's version is abridged.Haythami mentioned it in Majma (2/320) and said, "Ahmad, Abu Yaala, and Bazzar narrated it, and the men of Ahmad's chain are the men of the sahih."