I said to Ayesha, "Tell me of something the Messenger of Allah ﷺ used to supplicate with in his prayer."She replied, "Yes. The Messenger of Allah ﷺ used to say, 'O Allah, I seek refuge in You from the evil of what I have done and from the evil of what I have not done.'"
قلت لعائشة: حدثيني بشيء كان رسول الله ﷺ يدعو به في صلاته، قالت: نعم، كان رسول الله ﷺ يقول: اللهم إني أعوذ بك من شر ما عملت، ومن شر ما لم أعمل.
Muslim narrated it in the Book of Remembrance and Supplication (2716) from Yahya bin Yahya and Ishaq bin Ibrahim, and the wording is Yahya's, they both said, Jareer informed us, from Mansur, from Hilal, from Farwa bin Nawfal Ashjai, who said, I asked Ayesha, and then he related the hadith.Muslim presented the wording of Yahya, and in his narration there is no mention that the Prophet used to say it in his prayer. Rather, it was Ishaq bin Ibrahim who mentioned that, and from him Nasai narrated it (1307) with the chain mentioned in Muslim, along with the text that I have presented from it.Likewise, Abu Dawud (1550) and Ibn Majah (3839) did not narrate it through the route of Ishaq bin Ibrahim, so they too did not mention that this occurred during the prayer.