Sahih al-Bukhari 2977
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
بُعِثْتُ بِجَوَامِعِ الْكَلِمِ، وَنُصِرْتُ بِالرُّعْبِ، فَبَيْنَا أَنَا نَائِمٌ أُتِيتُ بِمَفَاتِيحِ خَزَائِنِ الأَرْضِ، فَوُضِعَتْ فِي يَدِي "
Narrated Abu Huraira:
Allah's Messenger (ﷺ) said, "I have been sent with the shortest expressions bearing the widest meanings, and I have been made victorious with terror (cast in the hearts of the enemy), and while I was sleeping, the keys of the treasures of the world were brought to me and put in my hand." Abu Huraira added: Allah's Messenger (ﷺ) has left the world and now you, people, are bringing out those treasures (i.e. the Prophet did not benefit by them).
Full reference and source
Sahih al-Bukhari 2977 In-book : Book 56, Hadith 186 USC-MSA web (English) : Vol. 4, Book 52, Hadith 220 (deprecated)
View source on Sunnah.com (opens in a new tab)