Sayyiduna Hudhayfah bin Yaman (may Allah be pleased with him) narrates: When the Prophet Muhammad (peace and blessings be upon him) intended to sleep, he would place his blessed hand under his head, then recite: "O Allah! Protect me from Your punishment on the Day when You will gather (the narrator is unsure, perhaps the words are) resurrect Your servants."
Hadith Referenceمسند الحميدي / 449
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij« إسناده صحيح وأخرجه الترمذي فى «جامعه» برقم: 3398، وأحمد في«مسنده» برقم: 23716، والبزار فى «مسنده» برقم: 2825»
´Hudhaifah bin Al-Yaman (ra) narrated that:` When the Prophet (ﷺ) would sleep, he would put his hand under his head then say: “O Allah, safeguard me from Your Punishment the Day You gather [Your slaves] (Allāhumma qinī `adhābaka yawma tajma`u [`ibādak])” or “you resurrect your slaves (tab`athu `ibādak).”
Shaykh Dr. Abdur Rahman Freywai
Explanation: 1: O Allah! Save me from the punishment of the Day when You will gather or resurrect Your servants.
Source: Sunan al-Tirmidhi – Majlis ‘Ilmi Dar al-Da‘wah, New Delhi Edition, Page: 3398