On the adab of sleep and lying down

Riyad as-Salihin (The Meadows of the Righteous)

by Imam Nawawi

127. Chapter: On the adab of sleep and lying down

814. Al-Bara' ibn 'Azib said, "When the Messenger of Allah, may Allah bless him and grant him peace, used to retire to his bed, he would lie on his right side and then say, 'O Allah, I surrender my soul to You and I turn my face to You and I entrust my affair to You and I seek Your support with hope and fear of You. There is no refuge from You but to You. I have believed in Your Book which You sent down and Your Prophet whom You sent.'" [al-Bukhari]

815. al-Bara' ibn 'Azib reported: 'The Prophet, may Allah bless him and grant him peace, said to me, 'Whenever you go to bed, do wudu' as you do wudu' for the prayer and then lie down on your right side. Then say...'" and he mentioned the rest of it and in it is, "Make that the last of the words that you utter." [Agreed upon]

816. 'A'isha said, "The Prophet , may Allah bless him and grant him peace, used to pray eleven rak'ats at night. When it was dawn, he would pray two quick rak'ats and then lie on his right side until the mu'adhdhin came and gave the adhan." [Agreed upon]

817. Hudhayfa said, "When the Prophet, may Allah bless him and grant him peace, went to bed at night, he placed his hand under his cheek and then said, 'O Allah, in Your name I die and live.' When he woke up, he said, 'Praise be to Allah who has brought me to life after He made me die and to Him is the gathering.'" [al-Bukhari]

818. Ya'ish ibn Tikhfa al-Ghifari said, "My father said, 'Once while I was lying on my stomach in the mosque, a man moved me with his foot and said, "This is a position which Allah hates."'" He said, "I looked up and it was the Messenger of Allah, may Allah bless him and grant him peace." [Abu Dawud]

819. Abu Hurayra reported that the Messenger of Allah, may Allah bless him and grant him peace, said, "Anyone who sits for any length of time without mentioning Allah Almighty, will be diminished by Allah Almighty through it, and whoever lies down for any time without mentioning Allah Almighty, will be diminished by Allah Almighty through it." [Abu Dawud]