ON THE SUBJECT OF 246 SUPPLICATIONS UPON SLEEPING AND ARISING ; SUPPLICATIONS BEFORE GOING TO SLEEP AND WAKING H 1477 "The Messenger of Allah, praise and peace be upon him, supplicated before going to bed at night saying, 'With Your Name, O Allah, I die and return to life.' Upon getting up he would supplicate, 'All praise belongs to Allah who has restored me to life after He had caused me to die, to Him is the return.'" R 1477 Bukhari with a chain up to Huzaifah and Abu Dharr who related that the Messenger of Allah, praise and peace be upon him, said this.
باب مَا يقوله عِنْدَ نومه واستيقاظه 1446- عن حُذَيفَةَ ، وأبي ذرٍ رضي الله عنهما ، قالا : كَانَ رسولُ الله صلى الله عليه وآله وسلم إِذَا أوَى إِلَى فِرَاشِهِ ، قَالَ : "بِاسْمِكَ اللَّهُمَّ أَحْيَا وَأموتُ" وَإذَا اسْتَيقَظَ قَالَ : "الحَمْدُ للهِ الَّذِي أَحْيَانَا بعْدَ مَا أماتَنَا وإِلَيْهِ النُّشُورُ" . رواه البخاري .