The Messenger of Allah ﷺ would place his right hand under his cheek when going to sleep and say, "O Allah, protect me from Your punishment on the Day You resurrect Your servants."
حدثنا إسحاق بن يوسف حدثنا سفيان عن أبي إسحاق
أن رسول الله ﷺ كان يضع يده اليمنى تحت خده عند منامه ويقول اللهم قني عذابك يوم تبعث عبادك