Uqba bin Amir reported,

The Prophet ﷺ went out one day and prayed over the people of Uhud the prayer for the dead, then he went to the pulpit and said, "I am your forerunner, and I am a witness over you. By Allah, I am looking at my Cistern right now. I have been given the keys to the treasures of the earth," or he said, "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 1344

Sahih

حدثنا عبد الله بن يوسف حدثنا الليث حدثني يزيد بن أبي حبيب عن أبي الخير

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

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

البخاري 1344صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
Prayer for the martyr
Numbering
Darussalam 1344
Bukhari 1344