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."
حدثنا أبو النضر حدثنا شريك عن عبد الملك بن عمير عن ربعى بن حراش
كان النبي ﷺ قمنا أن يقول إذا أخذ مضجعه من الليل وضع يده اليمنى تحت خده اليمنى ثم يقول اللهم باسمك أحيا وباسمك أموت فإذا استيقظ من الليل قال الحمد لله الذي أحياني بعدما أماتني وإليه النشور