Huzaifa bin Yaman reported,

The Prophet ﷺ, when he lay down to sleep at night, would place his right hand under his right cheek and say, "Allah, in Your name I live and in Your name I die." When he awoke during the night, he would say, "Praise be to Allah who has given me life after causing me to die, and to Him is the resurrection."

Ahmad 23286

Sahih

حدثنا أبو النضر حدثنا شريك عن عبد الملك بن عمير عن ربعى بن حراش

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

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

أحمد 23286صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Huzaifa bin Yaman
Numbering
Darussalam 23286
Ahmad 23286