Uqba bin Amir reported,

The Messenger of Allah ﷺ went out one day and prayed over the people of Uhud the prayer for the dead, then went to the pulpit and said, "I will precede you, and I will be a witness over you. By Allah, I am looking at my Pond right now, and I have been given the keys to the treasures of the earth, or the keys of the earth. By Allah, I do not fear that you will associate partners with Allah after me, but I fear that you will compete with one another over it."

Azami 15232

Sahih

عن عقبة بن عامر

أن رسول الله ﷺ خرج يوما، فصلى على أهل أحد صلاته على الميت، ثم انصرف إلى المنبر، فقال: إني فرطكم، وأنا شهيد عليكم، وإني والله لأنظر إلى حوضي الآن، وإني قد أعطيت مفاتيح خزائن الأرض- أو مفاتيح الأرض- وإني والله ما أخاف عليكم أن تشركوا بعدي، ولكني أخاف عليكم أن تنافسوا فيها.

الأعظمي 15232صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Asceticism and softening of the heart
Chapter
Discouragement from the trial of women and love of wealth
Section
Warning against the splendor of the worldly life and competing for it
Numbering
Jami al-Kamil 15232 (2nd edition)
Azami 15232