Ibn Mas'ud reported Allah's Messenger (ﷺ) as saying
Wretched is the man who says: I forgot such and such a sura, or I forget such and such a verse, but he has been made to forget.