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

Hudhayfa said, "When the Prophet, may Allah bless him and granthim peace, wanted to go to sleep, he said, 'By Your Name, O Allah, I dieand live.' When he woke up, he said, 'Praise be to Allah who gave us lifeafter He made us die, and to Him is the gathering.'"