Fiqh-us-Sunnah Volume 4, Funerals and Dhikr, Fiqh 4.121.

Section : Supplication on Waking Up.

The Prophet, peace be upon him, advised that on waking up from sleep one should say, “Thanks be to Allah Who returned my soul, made my body sound, and permitted me to remember Him.”

When the Prophet, peace be upon him, woke he would say, “There is no god but You, glory be to You. O Allah, I seek Your forgiveness of my sins, and ask for Your mercy. O Allah, increase me in knowledge, and let not my heart deviate after You have guided me on the right path. Grant me mercy from You, for You are the Grantor of bounties without measure.”

In another sound hadith the Prophet, peace be upon him, said, “Whoever wakes up from sleep and cannot go back to sleep, and says, “La ilaha illa-Allahu wahdahu la sharika lahu, lahul-mulk wa lahul-hamd, wa huwa ‘ala kulli sha’ in qadeer, al-hamdu lillahi, wa subhan’Allah, wa la ilaha illallahu, wallahu akbar, wala hawla wala quwwata illa billah (there is no god but Allah, He is One and has no partner, to Him belongs all praise and all authority, and He has power over all things, praise be to Allah, glory be to Aliah, there is no god but Allah, Allah is the greatest, there is no power nor any authority but with Allah),’ and then says, ‘Allahumma ighfir li (O Allah, forgive me), or asks some other thing, will be answered, and if he makes wudu and offers a prayer it will be accepted from him.”