It was narrated from ‘Aishah that 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.” It was said to him: “O Messenger of Allah, does hating to meet Allah mean hating to meet death? For all of us hate death.” He said: “No. Rather that is only at the moment of death. But if he is given the glad tidings of the mercy and forgiveness of Allah, he loves to meet Allah and Allah loves to meet him; and if he is given the tidings of the punishment of Allah, he hates to meet Allah and Allah hates to meet him.”