حَدَّثَنَا قَبِيصَةُ، وَأَبُو نُعَيْمٍ، قَالاَ: حَدَّثَنَا سُفْيَانُ، عَنْ عَبْدِ الْمَلِكِ بْنِ عُمَيْرٍ، عَنْ رِبْعِيِّ بْنِ حِرَاشٍ، عَنْ حُذَيْفَةَ قَالَ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا أَرَادَ أَنْ يَنَامَ قَالَ: ”بِاسْمِكَ اللَّهُمَّ أَمُوتُ وَأَحْيَا“، وَإِذَا اسْتَيْقَظَ مِنْ مَنَامِهِ قَالَ: ”الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانَا بَعْدَ مَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ.“
It is narrated from Sayyiduna Hudhayfah (may Allah be pleased with him) that when the Prophet (peace and blessings of Allah be upon him) intended to sleep, he would say: "With Your name, O Allah, I die and I live." And when he would wake up from sleep, he would say: "All praise is for Allah who gave us life after causing us to die, and to Him is the resurrection."