Sahih Muslim 4882: Remembrance of Allah, Supplication, Repentance and Seeking Forgiveness
Abu Burdah bin Abi Musa Ash'ari (ra) narrates from his father that the Prophet (saw) used to make this supplication: “Allahummaghfir li khati'ati wa jahli wa israfi fi amri wa ma anta a'lamu bihi minni. Allahummaghfir li jiddi wa hazli wa khata'i wa amdi wa kullu dhalika indi. Allahummaghfir li ma qaddamtu wa ma akhkhartu wa ma asrartu wa ma a'lantu wa ma anta a'lamu bihi minni, antal-muqaddimu wa antal-mu'akhkhiru wa anta ala kulli shai'in qadir (O my Lord, my error and my ignorance and my excess in my affairs, and that which You know better than I do: forgive me all of it. O Allah, forgive me my seriousness and my jesting, (what I did) unintentionally and intentionally, and all of this is present in me. O Allah, forgive me what I have sent ahead and what I have left behind, what I have concealed and what I have done openly, and that which You know better than I do. You alone are the One Who brings forward and You alone are the One Who holds back, and You have full power over all things).”
AI-translated by Islam-Today
Book 48: Remembrance of Allah, Supplication, Repentance and Seeking Forgiveness