Abdullah bin Masud reported,

The Prophet ﷺ, when he retired to his bed, would place his right hand under his cheek and say, "O Allah, protect me from Your punishment on the Day You raise up," or "gather Your servants."

Ibn Majah 3877

Sahih

حدثنا علي بن محمد حدثنا وكيع عن إسرائيل عن أبي إسحق عن أبي عبيدة

عن عبد الله

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

ابن ماجه 3877صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Supplication
Chapter
What to say when going to bed
Numbering
Darussalam 3877
Ibn Majah 3877