Sunnah.com : Book 17, Hadith 16
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وعن ابن عباس رضي الله عنهما أن رسول الله صلى الله عليه وسلم، كان يقول: اللهم لك أسلمت، وبك آمنت، وعليك توكلت، وإليك أنبت وبك خاصمت، وإليك حاكمت، فاغفر لي ما قدمت، وما أخرت وما أسررت وما أعلنت، أنت المقدم، وأنت المؤخر، لا إله إلا أنت" زاد بعض الرواة: "ولا حول ولا قوة إلا بالله" ((متفق عليه))."
Ibn 'Abbas (May Allah be pleased with them) reported:
The Messenger of Allah (ﷺ) used to supplicate: "Allahumma laka aslamtu, wa bika amantu, wa 'alaika tawakkaltu, wa ilaika anabtu, wa bika khasamtu, wa ilaika hakamtu. Faghfir li ma qaddamtu, wa ma akh-khartu, wa ma asrartu wa ma a'lantu, Antal-Muqaddimu, wa Antal-Mu'akhkhiru, la ilaha illa Anta (O Allah! to You I submit, in You I affirm my faith, in You I repose my trust, to You I turn in repentance and with Your Help I contend my adversaries and from You I seek judgement. O Allah! Grant me forgiveness for the faults which I made in past and those ones I may commit in the future, those which I committed secretly or openly. You Alone send whomever You will to Jannah, and You Alone send whomever You will to Hell-fire. There is none worthy of worship except You)." Another narration adds: "La hawla wa la quwwata illa billah (There is no strength to resist evil and no power to do good except through Allah)." [Al-Bukhari and Muslim].
Full reference and source
Sunnah.com : Book 17, Hadith 16 Arabic/English book : Book 17, Hadith 1480
View source on Sunnah.com (opens in a new tab)