Ubada bin Samit reported,

The Messenger of Allah ﷺ said, "Whoever wakes during the night and says upon waking, 'There is no god but Allah alone, with no partner. To Him belongs the dominion and to Him belongs all praise, and He is capable of all things. Glory be to Allah, praise be to Allah, there is no god but Allah, Allah is the greatest, and there is no power nor strength except through Allah, the Most High, the Magnificent,' then supplicates, 'My Lord, forgive me,' he will be forgiven."Walid said, "Or he said, 'If he supplicates, his supplication will be answered, and if he rises, performs ablution, and prays, his prayer will be accepted.'"

Ibn Majah 3878

Sahih

حدثنا عبد الرحمن بن إبراهيم الدمشقي حدثنا الوليد بن مسلم حدثنا الأوزاعي حدثني عمير بن هانئ حدثني جنادة بن أبي أمية

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

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

ابن ماجه 3878صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Supplication
Chapter
What one says when waking up at night
Numbering
Darussalam 3878
Ibn Majah 3878