‘Allaahumma ghaarat al-nujoom, wa hada-at al-’uyoon, wa Anta Hayyun Qayyoom; laa ta-khu-dhuka sinatun wa laa nawm. Yaa Hayyu yaa Qayyoom, ah-di’ layli, wa anim ‘ayni
(O Allah, the stars have come out and eyes have closed, and You are the Ever Living, the One Who sustains and protects all that exists; neither slumber nor sleep overtakes You. O Ever-Living, O Sustainer, bring calm to my night and let my eyes sleep).’ I recited this dua and Allah cured my insomnia.” (lbn al-Sunni)
1210. Abu Hurayra said, "The Messenger of Allah, may Allah bless him and grant him peace, said, 'When one of you goes to bed, he should undo the inside of his lower garment and dust the bed with it. He does not know what has come on his bed since he left it. He should lie down on his right side and say, 'In Your Name I have laid down on my side. If You take my soul, then have mercy on it. If You release it, then preserve it in the manner in which You preserve the men of right action."