Ibn Khashram said:
I saw Waki’ and I never saw a book in his hand but he used to memorize. I asked him, “What is the treatment for memorization?”
He replied, “Abandoning sins, as I have not tried anything like it for memorization.”
['Al-Tahdhib', Ibn Hajar]