Uqba reported,

The Prophet ﷺ went out one day and prayed over the martyrs of Uhud the prayer for the deceased. Then he turned toward the pulpit and said, "I am your forerunner and I am a witness over you. I am looking at my Pond right now. 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 worldly gain."

Bukhari 4085

Sahih

حدثني عمرو بن خالد حدثنا الليث عن يزيد بن أبي حبيب عن أبي الخير

عن عقبة

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

البخاري 4085صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Uhud loves us and we love it
Numbering
Darussalam 4085
Bukhari 4085