Shaddad bin Aws reported,

The Prophet ﷺ said that the master of seeking forgiveness is to say, "Allah, You are my Lord, there is no god but You. You created me and I am Your servant. I keep Your covenant and Your promise as best I can. I seek refuge in You from the evil of what I have done. I acknowledge to You Your favor upon me, and I acknowledge to You my sin, so forgive me, for none forgives sins but You."He said, "Whoever says it during the day with firm conviction in it and dies that day before evening comes is among the people of Paradise, and whoever says it during the night with firm conviction in it and dies before morning comes is among the people of Paradise."

Bukhari 6306

Sahih

حدثنا أبو معمر حدثنا عبد الوارث حدثنا الحسين حدثنا عبد الله بن بريدة قال حدثني بشير بن كعب العدوي قال حدثني

شداد بن أوس رضي الله عنه

عن النبي ﷺ سيد الاستغفار أن تقول اللهم أنت ربي لا إله إلا أنت خلقتني وأنا عبدك وأنا على عهدك ووعدك ما استطعت أعوذ بك من شر ما صنعت أبوء لك بنعمتك علي وأبوء لك بذنبي فاغفر لي فإنه لا يغفر الذنوب إلا أنت قال ومن قالها من النهار موقنا بها فمات من يومه قبل أن يمسي فهو من أهل الجنة ومن قالها من الليل وهو موقن بها فمات قبل أن يصبح فهو من أهل الجنة

البخاري 6306صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Supplications
Chapter
Best of seeking forgiveness
Numbering
Darussalam 6306
Bukhari 6306