Hadithcore
Mishkat al-Masabih, 2463

Ibn ‘Abbas said that God’s messenger used to say, “O God, to You I have submitted, in You I believe, on You I rely, to You I turn in repentance, and by You I contend. O God, I seek refuge in Your might, than whom there is no god, lest You leadest me into error. You are the Living One who dost not die, while jinn and men die.” (Bukhari and Muslim.)

وَعَنِ ابْنِ عَبَّاسٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ يَقُولُ: «اللَّهُمَّ لَكَ أَسْلَمْتُ وَبِكَ آمَنْتُ وَعَلَيْكَ تَوَكَّلْتُ وَإِلَيْكَ أَنَبْتُ وَبِكَ خَاصَمْتُ اللَّهُمَّ إِنِّي أَعُوذُ بِعِزَّتِكَ لَا إِلَهَ إِلَّا أَنْتَ أَنْ تُضِلَّنِي أَنْتَ الْحَيُّ الَّذِي لَا يَمُوتُ وَالْجِنُّ وَالْإِنْسُ يموتون»

References1 variant
In-Book Reference
Book 9, Hadith 232