Abdullah bin Masud reported,

The Messenger of Allah ﷺ said, "How wretched it is for one of you to say, 'I have forgotten such-and-such a verse.' Rather, he was made to forget. Keep reviewing the Quran, for it slips away from the hearts of Some men faster than livestock from their tethers."

Muslim 1841

Sahih

و حدثنا زهير بن حرب وعثمان بن أبي شيبة وإسحق بن إبراهيم قال إسحق أخبرنا وقال الآخران حدثنا جرير عن منصور عن أبي وائل

عن عبد الله قال

قال رسول الله ﷺ بئسما لأحدهم يقول نسيت آية كيت وكيت بل هو نسي استذكروا القرآن فلهو أشد تفصيا من صدور الرجال من النعم بعقلها

مسلم 1841صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues of the Quran and what relates to it
Chapter
Command to constantly review the Quran and the dislike of saying "I forgot such and such a verse", and the permissibility of saying "I was made to forget it"
Numbering
Darussalam 1841
Muslim 1841