Hudhaifa ibn Yaman narrates that when the Prophet, may Allah send peace and blessings upon him, would retire to his bed he would say,
In your name do I die and live
and when he would wake up he would say,
All praise belongs to the one who gave us life after he had given us death and to him is the resurrection.
عَنْ حُذَيْفَةَ بْنِ الْيَمَانِ قَالَ
كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا أَوَى إِلَى فِرَاشِهِ قَالَ
بِاسْمِكَ أَمُوتُ وَأَحْيَا
وَإِذَا قَامَ قَالَ
الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانَا بَعْدَ مَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ
(رواه البخاري: بَاب مَا يَقُولُ إِذَا أَصْبَحَ)