Ayesha reported,

The Prophet ﷺ said, "Now then, Ayesha, such and such has reached me about you. If you are innocent, Allah will declare your innocence, and if you have fallen into a sin, then seek Allah's forgiveness and turn to Him in repentance, for when a servant confesses a sin and then repents, Allah accepts his repentance."

Azami 11444

Sahih

في قصة الإفك:

عن عائشة قالت

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

الأعظمي 11444صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Repentance and seeking forgiveness
Chapter
Comprehensive and general supplications
Section
Whoever commits a sin then repents, Allah accepts his repentance
Numbering
Jami al-Kamil 11444 (2nd edition)
Azami 11444