Jami` at-Tirmidhi 3417
Hudhaifah bin Al-Yaman (may Allah be pleased with him) narrated that when the Prophet wanted to sleep, he would say:
“O Allah, in Your Name I dies and I live (Allahumma Bismika Amutu Wa Ahya).” And when he would wake, he would say: “Allah praise is due to Allah who revived my soul after causing its death and to Him is the resurrection (Al-Hamdulillah, Alladhi Ahya Nafsi Ba’da Ma Amataha Wa Ilaihin-Nushur).”
حَدَّثَنَا عُمَرُ بْنُ إِسْمَاعِيلَ بْنِ مُجَالِدِ بْنِ سَعِيدٍ، حَدَّثَنَا أَبِي، عَنْ عَبْدِ الْمَلِكِ بْنِ عُمَيْرٍ، عَنْ رِبْعِيٍّ، عَنْ حُذَيْفَةَ بْنِ الْيَمَانِ، رضى الله عنهما أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ إِذَا أَرَادَ أَنْ يَنَامَ قَالَ " اللَّهُمَّ بِاسْمِكَ أَمُوتُ وَأَحْيَا " . وَإِذَا اسْتَيْقَظَ قَالَ " الْحَمْدُ لِلَّهِ الَّذِي أَحْيَا نَفْسِي بَعْدَ مَا أَمَاتَهَا وَإِلَيْهِ النُّشُورُ " .
قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ .