Anas bin Malik reported,

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."

Azami 3511

Sahih

عن أنس قال

قال رسول الله ﷺ: من أحب لقاء الله أحب الله لقاءه، ومن كره لقاء الله كره الله لقاءه. قلنا: يا رسول الله! كلنا نكره الموت، قال: ليس ذاك كراهية الموت، ولكن المؤمن إذا حضر، جاءه البشير من الله بما هو صائر إليه، فليس شيء أحب إليه من أن يكون قد لقي الله، فأحب الله لقاءه، وإن الفاجر- أو الكافر- إذا حضر جاءه بما هو صائر إليه من الشر- أو ما يلقى من الشر- فكره لقاء الله وكره الله لقاءه.

الأعظمي 3511صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Dying person
Section
Whoever loves to meet Allah
Numbering
Jami al-Kamil 3511 (2nd edition)
Azami 3511