Ibn Umar reported: A man said, “O Messenger of Allah, which of the believers is best?” The Messenger of Allah, peace and blessings be upon him, said, “Those with the best character.” The man said, “Which of the believers is the wisest?” The Prophet said, “Those who remember death often and have best prepared for it with good deeds; such are the wisest.”
Source: Sunan Ibn Mājah 4259
Grade: Hasan (fair) according to Al-Albani
عَنْ ابْنِ عُمَرَ قَالَ قَالَ رَجُلٌ يَا رَسُولَ اللَّهِ أَيُّ الْمُؤْمِنِينَ أَفْضَلُ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَحْسَنُهُمْ خُلُقًا قَالَ فَأَيُّ الْمُؤْمِنِينَ أَكْيَسُ قَالَ أَكْثَرُهُمْ لِلْمَوْتِ ذِكْرًا وَأَحْسَنُهُمْ لِمَا بَعْدَهُ اسْتِعْدَادًا أُولَئِكَ الْأَكْيَاسُ
4259 سنن ابن ماجه كتاب الزهد باب ذكر الموت والاستعداد له
3335 المحدث الألباني خلاصة حكم المحدث حسن في صحيح الترغيب