Mishkat al-Masabih 1213
وَعَنْ عُبَادَةَ بْنِ الصَّامِتِ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: مَنْ تَعَارَّ مِنَ اللَّيْلِ فَقَالَ: لَا إِلَهَ إِلَّا اللَّهُ وَحْدَهُ لَا شَرِيكَ لَهُ لَهُ الْمُلْكُ وَلَهُ الْحَمْدُ وَهُوَ عَلَى كُلِّ شَيْءٍ قَدِيرٌ وَسُبْحَانَ اللَّهِ وَالْحَمْدُ لِلَّهِ وَلَا إِلَهَ إِلَّا اللَّهُ وَاللَّهُ أَكْبَرُ وَلَا حَوْلَ وَلَا قُوَّةَ إِلَّا بِاللَّهِ ثُمَّ قَالَ: رَبِّ اغْفِرْ لِي أَوْ قَالَ: ثمَّ دَعَا استيجيب لَهُ فَإِنْ تَوَضَّأَ وَصَلَّى قُبِلَتْ صَلَاتُهُ رَوَاهُ البُخَارِيّ
From ʿUbadah ibn as-Samit, who said: The Messenger of Allah ﷺ said: "Whoever wakes up at night and says: There is no god but Allah alone, with no partner; His is the dominion and His is the praise, and He has power over all things; glory be to Allah, praise be to Allah, there is no god but Allah, Allah is the Greatest, and there is no might and no power except with Allah, then says: My Lord, forgive me" — or he said: "then supplicates — he will be answered. And if he performs wudu and prays, his prayer will be accepted." Reported by al-Bukhari.