Sahih al-Bukhari 118: (What is said regarding) the memorization of (religious) knowledge
Abū Hurairah (r.a) narrated: ‘Indeed, people say, “Abū Hurairah (r.a) narrates too much [aḥādīth]”, but were it not for two verses in the Book of Allāh, I would not have narrated a single one.’ Then he would recite: ‘Those who conceal what we have sent down of Signs and guidance after We have made it clear for the people in the Book, it is these whom Allāh curses; and [so] curse them those who curse. But they who repent and amend and openly declare [the truth], it is these to whom I turn with forgiveness, and I am Oft-Returning [with compassion] and Merciful’ (Sūrat al-Baqarah, 2:160–161).
[He continued]: ‘Certainly, our Muhājirūn brethren would be preoccupied with business endeavours in the marketplaces, and our Anṣār brethren were occupied with their financial affairs. However, Abū Hurairah (r.a) used to remain in the company of the Messenger of Allāh (saw), content with that which kept his stomach filled. He remained present [with him] when others were not, and memorised what they did not memorise.’
Chapter 42: (What is said regarding) the memorization of (religious) knowledge