Ayesha reported,

The Prophet ﷺ was listening to a man recite in the mosque, and he said, "May Allah have mercy on him. He has reminded me of a verse that I had been made to forget."

Muslim 1838

Sahih

و حدثنا ابن نمير حدثنا عبدة وأبو معاوية عن هشام عن أبيه

عن عائشة قالت

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

مسلم 1838صحيح
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 1838
Muslim 1838