Sayyiduna Hudhayfah (may Allah be pleased with him) narrates: When the Prophet (peace and blessings be upon him) would go to bed, he would recite: "O Allah! In Your name, I die (i.e., sleep) and I live (i.e., wake up)." When the Prophet (peace and blessings be upon him) would wake up, he would recite: "All praise is for Allah, who gave us life after causing us to die (i.e., sleep), and to Him is the resurrection."
Hadith Referenceصحیح ابن حبان / كتاب الزينة والتطييب / 5539
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الصحيحة» (2754): خ، ومضى (5507). تنبيه!! رقم (5507) = (5532) من «طبعة المؤسسة». - مدخل بيانات الشاملة -.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط الشيخين