It is narrated from Sayyiduna al-Bara' (may Allah be pleased with him) that when the Messenger of Allah (peace and blessings be upon him) intended to sleep, he would make his right hand his pillow and say: "'Allahumma qini adhabaka yawma tajma'u ibadak' (O Allah, protect me from Your punishment on the Day You gather Your servants)."
Hadith Referenceمسند أبي يعلى الموصلي / مسند البراء بن عازب / 1711
Hadith Takhrij«قال سعيد بن محمد السناري: صحيح: مضى الكلام على هذا الطريق [برقم 1683]» «أخرجه سنن الترمذي برقم: 3399، وأخرجه مسند أحمد برقم: 18004، وأخرجه السنن الكبرى للنسائي برقم: 10815، مسند ابویعلیٰ ترقیم الاثری: 1706»