Narrated Hafsah, Ummul Muminin: When the Messenger of Allah ﷺ wanted to go to sleep, he put his right hand under his cheek and would then say three times: O Allah, guard me from Thy punishment on the day when Thou raisest up Thy servants.
Hadith Referenceسنن ابي داود / أبواب النوم / 5045
Hadith Gradingالألبانی:صحيح دون قوله ثلاث مرار | زبیر علی زئی:إسناده حسن, مشكوة المصابيح (2402)
Hadith Takhrij« تفرد بہ أبوداود، (تحفة الأشراف: 15797)، وقد أخرجہ: مسند احمد (6/287) (صحیح) » (لیکن تین بار لفظ صحیح نہیں ہے )