Abu Hurayra said, "The Messenger of Allah, may Allah bless him
and grant him peace, used to say when he went to bed, 'O Allah, Lord of
the heavens and the earth, and Lord of all things, Splitter of the grain
and seeds, the One who sent down the Torah, the Gospel and the Qur'an!
I seek refuge with You from every evil. You take by the forelock. You are
the Outward, and there is nothing above You. You are the Inward and there
is nothing below You. Pay my debts for me and keep me safe from poverty.'"
Al-Bara' ibn 'Azib said, "When the Prophet, may Allah bless him
and grant him peace, went to bed, he laid down on his right side. Then
he said, 'O Allah, I have turned my face to You and I have surrendered
my self to You and I have committed my back to You out of fear and desire
for You. There is no place of safety or refuge from You except with You.
I have believed in Your book which You revealed and Your Prophet whom You
sent.' He said, 'Whoever says it at night and then dies, dies in fitra
(natural state).'"
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."