Abdullah bin Masud reported,

The Prophet ﷺ 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. So keep reviewing the Quran, for it slips away from the hearts of Some men faster than livestock from their tethers."

Azami 11809

Sahih

عن عبد الله بن مسعود قال

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

الأعظمي 11809صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Sciences of the Quran and its virtues
Chapter
Sciences of the Quran
Section
Disliking saying "I forgot such and such a verse" and permissibility of saying "I was made to forget it"
Numbering
Jami al-Kamil 11809 (2nd edition)
Azami 11809