When the Messenger of Allah ﷺ awake at night, he said: There is no god but thou, glory be to Thee, O Allah, I ask Thy pardon for my sin and I ask Thee for Thy mercy. O Allah! advance me in knowledge: do not cause my heart to deviate (from guidance) after Thou hast guided me, and grant me mercy from thyself; verily thou art the grantor. (Using translation from Abū Dāʾūd 5061)
أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ إِذَا اسْتَيْقَظَ مِنَ اللَّيْلِ قَالَ «لَا إِلَهَ إِلَّا أَنْتَ سُبْحَانَكَ اللَّهُمَّ إِنِّي أَسْتَغْفِرُكَ لِذَنْبِي وَأَسْأَلُكَ بِرَحْمَتِكَ اللَّهُمَّ زِدْنِي عِلْمًا وَلَا تُزِغْ قَلْبِي بَعْدَ إِذْ هَدَيْتَنِي وَهَبْ لِي مِنْ لَدُنْكَ رَحْمَةً إِنَّكَ أَنْتَ الْوَهَّابُ»