Hadith 1048
Sayyiduna Ibn Umar (may Allah be pleased with them both) says: I came to the Prophet (peace and blessings be upon him) while I was the tenth among ten Muslims. Then a man from the Ansar stood up and said: O Messenger of Allah! Who is the most intelligent of all people? And who is the wisest? The Prophet (peace and blessings be upon him) replied: "The one who remembers death the most, and prepares for it before it comes. Those are the wise ones who have taken the honor and nobility of this world and the Hereafter."