Al-Ilmam bi-Ahadith al-Ahkam 331
وَعَن ابْن عَبَّاس رَضِيَ اللَّهُ عَنْهما أَن رَسُول الله ﷺ كَانَ يَقُول إِذا قَامَ إِلَى الصَّلَاة من جَوف اللَّيْل: " اللَّهُمَّ لَك الْحَمد أَنْت نور السَّمَاوَات وَالْأَرْض، وَلَك الْحَمد أَنْت قيام السَّمَاوَات وَالْأَرْض، وَلَك الْحَمد أَنْت رب السَّمَاوَات وَالْأَرْض وَمن فيهنَّ، أَنْت الْحق، وَوَعدك الْحق، وقولك الْحق، ولقاؤك حق، وَالْجنَّة حق، وَالنَّار حق، والساعة حق، اللَّهُمَّ لَك أسلمت، وَبِك آمَنت، وَعَلَيْك توكلت، (وَإِلَيْك أنبت) ، وَبِك خَاصَمت، وَإِلَيْك حاكمت ﷺ فَاغْفِر لي مَا قدمت وأخرت، وأسررت وأعلنت، أَنْت إلهي لَا إِلَه إِلَّا أَنْت ". لفظ مُسلم، وَهُوَ مُتَّفق عَلَيْهِ.
And from Ibn ʿAbbas, may Allah be pleased with them both, that when the Messenger of Allah ﷺ stood to pray in the depth of the night, he would say: "O Allah, to You belongs the praise; You are the Light of the heavens and the earth. To You belongs the praise; You are the Sustainer of the heavens and the earth. To You belongs the praise; You are the Lord of the heavens and the earth and whoever is in them. You are the Truth, Your promise is true, Your word is true, meeting You is true, Paradise is true, the Fire is true and the Hour is true. O Allah, to You I have submitted, in You I have believed, upon You I have relied, (to You I have turned,) by You I have disputed, and to You I have brought my case for judgement. So forgive me what I have done before and after, what I have done in secret and what I have done openly. You are my God; there is no god but You." The wording is Muslim's, and it is agreed upon.