The Messenger of Allah (ﷺ) used to lay his head upon his right hand when going to sleep, then say: “My Lord, safeguard me from Your punishment the Day You resurrect Your slaves (Rabbi qinī `adhābaka yawma tab`athu `ibādak).”
Jami` at-Tirmidhi Book 48, Hadith 30