Sunan Ibn Majah, Book 34, Hadith 51 (Ibn Majah 3879)

It was narrated from 'Abdullah that:

whenever the Prophet (saas) went to his bed, he would put his hand - meaning his right hand - beneath his cheek then say: "Allahumma qini 'adhabaka yawm tab'athu - - 'ibadaka (O Allah, save me from Your punishment on the Day when You resurrect - or gather - Your slaves)."