When the Messenger of Allah ﷺ would retire to his bed, he would place his right hand under his cheek and say three times, "My Lord, protect me from Your punishment on the Day You resurrect Your servants."
حدثنا يزيد بن هارون قال أخبرنا حماد بن سلمة عن عاصم بن أبي النجود عن سواء الخزاعي
كان رسول الله ﷺ إذا أوى إلى فراشه وضع يده اليمنى تحت خده وقال رب قني عذابك يوم تبعث عبادك ثلاثا