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 - [or: tajma'u] - 'ibadaka (O Allah, save me from Your punishment on the Day when You resurrect - or gather - Your slaves)
Hadith No. 3877
Sunan Ibn Majah
Gradings:
Al-Albani:
Sahih
Muhammad Fouad Abd al-Baqi:
Sahih
Zubair Ali Zai:
Sahih