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."
حَدَّثَنَا أَبُو نُعَيْمٍ، قَالَ: حَدَّثَنَا سُفْيَانُ، عَنْ لَيْثٍ، عَنْ أَبِي الزُّبَيْرِ، عَنْ جَابِرٍ قَالَ: كَانَ النَّبِيُّ صلى الله عليه وسلم لاَ يَنَامُ حَتَّى يَقْرَأَ: تَبَارَكَ وَ {الم تَنْزِيلُ} السَّجْدَةِ.
Jabir said, "The Prophet, may Allah bless him and grant him peace,
did not go to sleep until he had recited 'Blessed' (67) and 'Alif-Lam-Mim.
The Sending-down' (32)."
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).'"
'Abdullah said, "Going to sleep during dhikr comes from Shaytan.
if you like, you can put it to the test. When one of you goes to bed and
wants to go to sleep. he should mention Allah Almighty."