The Messenger of Allah ﷺ said, "O Allah, You are my Lord, there is no god but You. You created me and I am Your servant. I hold to Your covenant and Your promise as best I can. I seek refuge in You from the evil of what I have done. I acknowledge Your blessings upon me, and I acknowledge my sin. So forgive me, for none forgives sins but You."The Messenger of Allah ﷺ said, "Whoever says it during his day or night and dies on that day or that night will enter Paradise, if Allah the Exalted wills."
حدثنا علي بن محمد حدثنا إبراهيم بن عيينة حدثنا الوليد بن ثعلبة
قال رسول الله ﷺ اللهم أنت ربي لا إله إلا أنت خلقتني وأنا عبدك وأنا على عهدك ووعدك ما استطعت أعوذ بك من شر ما صنعت أبوء بنعمتك وأبوء بذنبي فاغفر لي فإنه لا يغفر الذنوب إلا أنت قال قال رسول الله ﷺ من قالها في يومه وليلته فمات في ذلك اليوم أو تلك الليلة دخل الجنة إن شاء الله تعالى
[Its chain of transmission is sahih] Abu Dawud also collected it, no. 5070, through the hadith of Walid bin Thalaba, and Ibn Hibban graded it sahih, no. 2353, as did Hakim, 1/514, 515, and Dhahabi.