It is narrated from Sayyiduna Abu Musa (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) 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' (O Allah, forgive me my error, my ignorance, my excess in my affairs, and all that You know better than I do. O Allah, (forgive) my seriousness and my jesting, my mistakes and my deliberate acts, and all of these faults are in me)."
Hadith Referenceالمعجم الأوسط / باب الميم / 6552
Hadith Takhrij«قال أبو حاتم الرازي: حديث قيس وأشعت أشبه «علل الحديث، ج 5، ص 419»» «أخرجه البخاري فى «صحيحه» برقم: 6398، 6399، ومسلم فى «صحيحه» برقم: 2719، وابن حبان فى «صحيحه» برقم: 957، 954، والحاكم فى «المستدرك» برقم: 1889، وأحمد فى «مسنده» برقم: 19798، 20052، وابن أبي شيبة فى «مصنفه» برقم: 30005، والطبراني فى «الأوسط» برقم: 5824»