Hadith 255

Hudhaifa said: “When the Prophet (Allah bless him and give him peace) went to his mattress, he would say: ‘O Allah, in Your Name I shall die and live,’ and when he woke up, he would say: ‘Praise be to Allah, who has revived us after He caused us to die, and to Him is the resurrection!'”

حَدَّثَنَا مَحْمُودُ بْنُ غَيْلانَ، قَالَ‏:‏ حَدَّثَنَا عَبْدُ الرَّزَّاقِ، قَالَ‏:‏ حَدَّثَنَا سُفْيَانُ، عَنْ عَبْدِ الْمَلِكِ بْنِ عُمَيْرٍ، عَنْ رِبْعِيِّ بْنِ حِرَاشٍ، عَنْ حُذَيْفَةَ، قَالَ‏:‏ كَانَ النَّبِيُّ صلى الله عليه وسلم إِذَا أَوَى إِلَى فِرَاشِهِ، قَالَ‏:‏ اللَّهُمَّ بِاسْمِكَ أَمُوتُ وَأَحْيَا، وَإِذَا اسْتَيْقَظَ، قَالَ‏:‏ الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانًا بَعْدَمَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ‏.‏

Reference: 1902560
In-book reference: Book 39, Hadith 255
Hadith 255 - The Sleeping Of Rasoolullah - Ash-Shama'il Al-Muhammadiyah - Sunnah.com