The Prophet (ﷺ) said, "It is a bad thing that some of you say, 'I have forgotten such-and-such verse of the Quran,' for indeed, he has been caused (by Allah) to forget it. So you must keep on reciting the Quran because it escapes from the hearts of men faster than camel do."
Sahih al-Bukhari Book 66, Hadith 54