The Prophet ﷺ said: If a Muslim sleeps while remembering Allah, in the state of purification, is alarmed while asleep at night, and asks Allah for good in this world and in the Hereafter. He surely gives it to him. Thabit al-Bunani said: AbuZabyah came to visit us and he transmitted this tradition to us from Mu'adh ibn Jabal from the Prophet ﷺ. Thabit said: So and so said: I tried my best to utter these (prayers) when I got up, but I could not do.
عَنِ النَّبِيِّ ﷺ قَالَ مَا مِنْ مُسْلِمٍ يَبِيتُ عَلَى ذِكْرٍ طَاهِرًا فَيَتَعَارُّ مِنَ اللَّيْلِ فَيَسْأَلُ اللَّهَ خَيْرًا مِنَ الدُّنْيَا وَالآخِرَةِ إِلاَّ أَعْطَاهُ إِيَّاهُ قَالَ ثَابِتٌ الْبُنَانِيُّ قَدِمَ عَلَيْنَا أَبُو ظَبْيَةَ فَحَدَّثَنَا بِهَذَا الْحَدِيثِ عَنْ مُعَاذِ بْنِ جَبَلٍ عَنِ النَّبِيِّ ﷺ قَالَ ثَابِتٌ قَالَ فُلاَنٌ لَقَدْ جَهَدْتُ أَنْ أَقُولَهَا حِينَ أَنْبَعِثُ فَمَا قَدَرْتُ عَلَيْهَا