It is narrated from Sayyiduna Shaddad bin Aws (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Sayyid al-Istighfar (the most excellent formula of seeking forgiveness) is that you say: 'Allahumma anta Rabbi, la ilaha illa anta, khalaqtani wa ana 'abduka, wa ana 'ala 'ahdika wa wa'dika mastata'tu, a'udhu bika min sharri ma sana'tu, wa abu'u bini'matika 'alayya, wa abu'u bidhanbi, faghfir li, fa innahu la yaghfirudh-dhunuba illa anta' (O Allah, You are my Lord; there is no god worthy of worship except You. You created me and I am Your servant, and I abide by Your covenant and promise as much as I am able. I seek refuge in You from the evil of what I have done. I acknowledge before You the blessings You have bestowed upon me, and I confess my sins, so forgive me, for none forgives sins except You).
So whoever says these words after evening falls and dies that very night enters Paradise, and whoever says them in the morning after waking from his sleep enters Paradise."
Hadith Referenceالمعجم الأوسط / باب الألف / 1014
Hadith Takhrij«قال أبو حاتم الرازي: الصحيح عن شداد عن النبي صلى الله عليه وسلم نقص شعبة رجل «علل الحديث، ج 5، ص 404»» «قال أبو زرعة الرازي: والحديث حديث عبد الوارث وقصر شعبة به «علل الحديث، ج 5، ص 405»» «قال المزي: روى عن عبد الله بن بريدة عن بشير بن كعب عن شداد بن أوس وهو المحفوظ «تهذيب الكمال، ج 28، ص 501»» «أخرجه البخاري فى «صحيحه» برقم: 6306، 6323، وابن حبان فى «صحيحه» برقم: 932، 933، والحاكم فى «المستدرك» برقم: 3728، والنسائي فى «المجتبى» برقم: 5537 / 1، والنسائي فى «السنن الكبرى» برقم: 7908، 9763، 10225، 10226، 10341، 10342، والترمذي فى «جامعه» برقم: 3393، وأحمد فى «مسنده» برقم: 17386، 17405، 17406، والبزار فى «مسنده» برقم: 3488، وابن أبي شيبة فى «مصنفه» برقم: 30053، 30052، والطبراني فى «الكبير» برقم: 7172، 7173، 7174، 7185، 7187، 7189، والطبراني فى «الأوسط» برقم: 4560»