Huzaifa bin Yaman reported,

When the Prophet ﷺ went to his bed, he would say, "In Your name I die and live." When he arose, he would say, "Praise be to Allah who has given us life after causing us to die, and to Him is the resurrection."

Bukhari 6312

Sahih

حدثنا قبيصة حدثنا سفيان عن عبد الملك عن ربعي بن حراش

عن حذيفة بن اليمان قال

كان النبي ﷺ إذا أوى إلى فراشه قال باسمك أموت وأحيا وإذا قام قال الحمد لله الذي أحيانا بعد ما أماتنا وإليه النشور

البخاري 6312صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Supplications
Chapter
What to say when going to sleep
Numbering
Darussalam 6312
Bukhari 6312