Abdullah bin Abbas reported,

When the Prophet ﷺ would rise at night to pray Tahajjud, he would say, "O Allah, all praise is Yours. You are the light of the heavens and the earth and all who are in them. All praise is Yours. You are the sustainer of the heavens and the earth and all who are in them. All praise is Yours. 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, the Hour is true, the prophets are true, and Muhammad is true. O Allah, to You I have submitted, in You I place my trust, in You I believe, to You I turn in repentance, by Your help I dispute, and to You I bring my judgment. So forgive me for what I have done before and what I will do later, what I have hidden and what I have made public. You are the One who brings forward and You are the One who puts back. There is no god but You," or "there is no god other than You."

Bukhari 6317

Sahih

حدثنا عبد الله بن محمد حدثنا سفيان سمعت سليمان بن أبي مسلم عن طاوس

عن ابن عباس

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

البخاري 6317صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Supplications
Chapter
Supplication upon waking at night
Numbering
Darussalam 6317
Bukhari 6317