The Messenger of Allah (peace be upon him) said : “Allah (mighty and sublime be He) said : If My servant likes to meet Me, I like to meet him; and if he dislikes to meet Me, I dislike to meet him. Prophetic explanation of this Sacred Hadith: He who likes to meet Allah, Allah likes to meet him; and he who dislikes to meet Allah, Allah dislikes to meet him. Aishah (may Allah be pleased with her) said: O Prophet of Allah, is it because of the dislike of death, for all of us dislike death? The Prophet (peace be upon him) said: It is not so, but rather it is that when the believer is given news of Allah’s mercy, His approval and His Paradise, he likes to meet Allah and Allah likes to meet him; but when the unbeliever is given news of Allah’s punishment and His displeasure, he dislikes to meet Allah and Allah dislikes to meet him.”
It was related by al-Bukhari and Malik. The Prophetic version is related by Muslim.