Abu Hurairah reported,

I said, "Messenger of Allah, I hear many hadiths from you but I forget them."He said, "Spread out your cloak."So I spread it out. He then scooped with both his hands and said, "Gather it up."So I gathered it up, and I never forgot anything after that.Ibrahim bin al-Mundhir narrated to us, saying, Ibn Abu Fudayk narrated to us this same report, or he said, "He scooped with his hand into it."

Bukhari 119

Sahih

حدثنا أحمد بن أبي بكر أبو مصعب قال حدثنا محمد بن إبراهيم بن دينار عن ابن أبي ذئب عن سعيد المقبري

عن أبي هريرة قال

قلت يا رسول الله إني أسمع منك حديثا كثيرا أنساه قال ابسط رداءك فبسطته قال فغرف بيديه ثم قال ضمه فضممته فما نسيت شيئا بعده حدثنا إبراهيم بن المنذر قال حدثنا ابن أبي فديك بهذا أو قال غرف بيده فيه

البخاري 119صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Knowledge
Chapter
Preservation of knowledge
Numbering
Darussalam 119
Bukhari 119