Abu Musa Ashari reported,

The Prophet ﷺ used to make this supplication, "My Lord, forgive me my sins, my ignorance, my excesses in all my affairs, and whatever You know about me better than I do. O Allah, forgive me my sins, those committed deliberately, in ignorance, or in jest, for all of these are with me. O Allah, forgive me what I have done in the past and what I will do in the future, what I have concealed and what I have made public. You are the One who brings forward and the One who puts back, and You have power over all things."

Azami 11355

Sahih

عن أبي موسى الأشعري

عن النبي ﷺ أنه كان يدعو بهذا الدعاء: رب اغفر لي خطيئتي وجهلي، وإسرافي في أمري كله، وما أنت أعلم به مني، اللهم اغفر لي خطاياي، وعمدي وجهلي وهزلي، وكل ذلك عندي، اللهم اغفر لي ما قدمت وما أخرت، وما أسررت وما أعلنت، أنت المقدم وأنت المؤخر، وأنت على كل شيء قدير.

الأعظمي 11355صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Comprehensive and general supplications
Section
Miscellaneous on supplication
Numbering
Jami al-Kamil 11355 (2nd edition)
Azami 11355