"When Allah’s Messenger (Allah bless him and give him peace) went to his mattress each night, he joined the palms of his hands, then breathed into them and recited into them: “Say: ‘He is Allah, One !' (Al-Qur'an;114:1), Then he passed them over as much of his body as he could, beginning with his head and his face and the front of his body, doing that three times.”
“When the Prophet (Allah bless him and give him peace) went to his mattress, he would say: ‘O Allah, in Your Name I shall die and live,’ and when he woke up, he would say:
‘Praise be to Allah, who has revived us after He caused us to die, and to Him is the resurrection!'”
“Allah’s Messenger (Allah bless him and give him peace) slept until he gasped for breath, and he had gasped for breath while he was sleeping, so Bilal came to him and called him
to the ritual prayer, whereupon he got up and performed the ritual prayer, and he did not perform the minor ritual ablution. And there is a story behind this tradition."
“When the Prophet (Allah bless him and give him peace) lay down to sleep, he placed the palm of his right hand under his right cheek and said: ‘O my Lord, preserve me from Your torment on the day when You resurrect Your servants!'”