Abdullah bin Abbas reported,

The Messenger of Allah ﷺ used to say, when he rose for prayer in the depth of the night, "O Allah, to You belongs all praise. You are the light of the heavens and the earth. To You belongs all praise. You are the sustainer of the heavens and the earth. To You belongs all praise. You are the Lord of the heavens and the earth and all who dwell within them. You are the Truth, Your promise is true, Your word is true, the meeting with 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 in repentance, with Your aid I have disputed, and to You I have brought my judgment. So forgive me for what I have done before and what I will do, what I have concealed and what I have revealed. You are my God. There is no god but You."

Muslim 1808

Sahih

حدثنا قتيبة بن سعيد عن مالك بن أنس عن أبي الزبير عن طاوس

عن ابن عباس

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

مسلم 1808صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Travelers' prayer and its shortening
Chapter
Supplication in the night prayer and its standing
Numbering
Darussalam 1808
Muslim 1808