Sayyiduna Ibn Umar (may Allah be pleased with them both) narrates: I came to the Prophet (peace and blessings be upon him) as the tenth of ten men, and a man from the Ansar came and said: O Prophet of Allah, who is the most intelligent and the most prudent of people? He (peace and blessings be upon him) said: "Those who remember death the most and prepare for it the most before death comes; these are the intelligent ones, and they have taken away the honour of both this world and the Hereafter."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13479