It is narrated from Hazrat Hudhaifah (may Allah be pleased with him) that when the Noble Prophet (peace and blessings be upon him) would come to his bed, he would place his right hand under his cheek and recite this supplication: O my Lord! Protect me from the punishment of the Day when You will raise and gather Your servants.
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 23244