Hadith 1464

Hudhaifah (May Allah be pleased with him) reported: Whenever the Messenger of Allah (PBUH) intended to go to sleep, he would place his right hand under his (right) cheek and supplicate: "Allahumma qini 'adhabaka yauma tab'athu 'ibadaka (O Allah! Guard me against Your punishment on the Day when You will resurrect Your slaves)."

[At-Tirmidhi].

In a narration in Abu Dawud, Hafsah (May Allah be pleased with her) said: Before going to sleep the Messenger of Allah (PBUH) would recite this Du'a three times.

- وعن حذيفة رضي الله عنه أن رسول الله صلى الله عليه وسلم، كان إذا أراد أن يرقد وضع يده اليمنى تحت خده، ثم يقول‏:‏ ‏"‏اللهم قني عذابك يوم تبعث عبادك‏"‏‏.‏ ‏(‏‏(‏رواه الترمذي وقال حديث حسن ورواه أبو داود من رواية حفصة رضي الله عنه وفيه أنه كان يقوله ثلاث مرات‏)‏‏)‏‏.‏

Reference: 1714540
In-book reference: Book 15, Hadith 1464