Bulugh al-Maram, Book 16, Hadith 1563 (In-Book)

Abu Musa al-Ash’ari (RAA) narrated, “The Messenger of Allah used to supplicate, “O Allah, forgive me my faults, my ignorance, my immoderation in my concern. And you are better aware (of my affairs) than myself. O Allah, grant me forgiveness (of the faults which I committed) seriously or otherwise (and which I committed) inadvertently and deliberately. All these (failings) are in me. O Allah, grant me forgiveness from the faults, which I did in haste or deferred, which I committed in privacy or in public and you are better aware (of them) than myself. You are the First and the Last and over all things you are Omnipotent.” Agreed Upon.

وَعَنْ أَبِي مُوسَى اَلْأَشْعَرِيِّ ‏- رضى الله عنه ‏- قَالَ: { كَانَ اَلنَّبِيُّ ‏- صلى الله عليه وسلم ‏-يَدْعُو: اَللَّهُمَّ اغْفِرْ لِي خَطِيئَتِي, وَجَهْلِي, وَإِسْرَافِي فِي أَمْرِي, وَمَا أَنْتَ أَعْلَمُ بِهِ مِنِّي, اَللَّهُمَّ اِغْفِرْ لِي جِدِّي, وَهَزْلِي, وَخَطَئِي, وَعَمْدِي, وَكُلُّ ذَلِكَ عِنْدِي, اَللَّهُمَّ اِغْفِرْ لِي مَا قَدَّمْتُ, وَمَا أَخَّرْتُ, وَمَا أَسْرَرْتُ, وَمَا أَعْلَنْتُ, وَمَا أَنْتَ أَعْلَمُ بِهِ مِنِّي, أَنْتَ اَلْمُقَدِّمُ وَالْمُؤَخِّرُ, وَأَنْتَ عَلَى كُلِّ شَيْءٍ قَدِيرٌ } مُتَّفَقٌ عَلَيْهِ.‏ (2027)‏.‏ ‏1 ‏- صحيح.‏ رواه البخاري (6398)‏، ومسلم (2819)‏.‏

sunnah.com

also referenced under: Book 16, Hadith 1606 (English)