Abdullah bin Umar reported,

I was with the Messenger of Allah ﷺ when a man from the Ansar came and greeted the Prophet ﷺ, then asked, "Messenger of Allah, which of the believers is the best?"He replied, "The one with the finest character."The man asked, "And which of the believers is the wisest?"He answered, "The one who remembers death most often and prepares best for what comes after it. Those are the wise ones."

Ibn Majah 4259

Hasan

حدثنا الزبير بن بكار حدثنا أنس بن عياض حدثنا نافع بن عبد الله عن فروة بن قيس عن عطاء بن أبي رباح

عن ابن عمر أنه قال

كنت مع رسول الله ﷺ فجاءه رجل من الأنصار فسلم على النبي ﷺ ثم قال يا رسول الله أي المؤمنين أفضل قال أحسنهم خلقا قال فأي المؤمنين أكيس قال أكثرهم للموت ذكرا وأحسنهم لما بعده استعدادا أولئك الأكياس

ابن ماجه 4259حسن
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Asceticism
Chapter
Death and preparing for it
Numbering
Darussalam 4259
Ibn Majah 4259