حَدَّثَنَا مَحْمُودُ بْنُ غَيْلَانَ قَالَ: حَدَّثَنَا عَبْدُ الرَّزَّاقِ قَالَ: حَدَّثَنَا سُفْيَانُ، عَنْ عَبْدِ الْمَلِكِ بْنِ عُمَيْرٍ، عَنْ رِبْعِيِّ بْنِ حِرَاشٍ، عَنْ حُذَيْفَةَ قَالَ: كَانَ النَّبِيُّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ إِذَا أَوَى إِلَى فِرَاشِهِ قَالَ: «اللَّهُمَّ بِاسْمِكَ أَمُوتُ وَأَحْيَا» ، وَإِذَا اسْتَيْقَظَ قَالَ: «الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانًا بَعْدَمَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ»
It is narrated from Sayyiduna Hudhayfah bin Yaman (may Allah be pleased with him), he says that when the Prophet Muhammad (peace and blessings be upon him) intended to sleep, he would supplicate as follows: «اللهم باسمك أموت وأحيا», "O Allah! In Your name I sleep and in Your name I wake up." And when he would wake up, he would supplicate as follows: «الحمد لله الذي أحيانا بعد ما أماتنا وإليه النشور», "All praise is for Allah who gave us life after causing us to die, and to Him is the resurrection."