كتاب الأذكار
15  
The Book of the Remembrance of Allah
(249)
Chapter: Supplication before going to Bed
(249)
- باب ما يقوله عند النوم
Riyad as-Salihin 1464
Hudhaifah (May Allah be pleased with him) reported:
Whenever the Messenger of Allah (ﷺ) 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 (ﷺ) would recite this Du'a three times.

وعن حذيفة رضي الله عنه أن رسول الله صلى الله عليه وسلم، كان إذا أراد أن يرقد وضع يده اليمنى تحت خده، ثم يقول‏:‏ ‏ "‏اللهم قني عذابك يوم تبعث عبادك‏"‏‏.‏ ‏(‏‏(‏رواه الترمذي وقال حديث حسن ورواه أبو داود من رواية حفصة رضي الله عنه وفيه أنه كان يقوله ثلاث مرات‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 1464
In-book reference : Book 15, Hadith 57