Ubada bin Samit reported,

The Prophet ﷺ said, "Whoever wakes during the night and says, 'There is no god but Allah alone, with no partner. To Him belongs the dominion, to Him belongs all praise, and He has power over all things. Praise be to Allah, glory be to Allah, there is no god but Allah, Allah is the greatest, and there is no might nor power except through Allah,' then says, 'O Allah, forgive me,' or makes any supplication, it will be answered. And if he performs ablution and prays, his prayer will be accepted."

Azami 11263

Sahih

عن عبادة بن الصامت

عن النبي ﷺ قال: من تعار من الليل فقال: لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شيء قدير، الحمد لله، وسبحان الله، ولا إله إلا الله والله أكبر، ولا حول ولا قوة إلا بالله، ثم قال: اللهم اغفر لي أو دعا استجيب له فإن توضأ وصلى قبلت صلاته.

الأعظمي 11263صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Morning and evening supplications
Section
What one says when waking or rousing from sleep at night
Numbering
Jami al-Kamil 11263 (2nd edition)
Azami 11263