The author – may Allah shower blessings on him – mentions this section about the manners of sleeping, sitting and the seated and other things one needs in his life in Riyaadus Saaliheen. This shows that this book is an all encompassing book which all Muslims are expected to read, understand and master.
The author then mentions the etiquettes of sleeping.
Sleep is a sign of Allah, the Mighty, which proves the perfection of His Might, Blessing and Wisdom. Allah – the most High – said:
“And among His Signs is the sleep that you take by night and by day, and your seeking of His Bounty.” (Ar-Rum: 23)
It is a blessing from Allah on His slaves as he takes rest in it after tiredness and prepares him for later activities. It thus benefits man in the past and in the future. It is also a complement to perfect the worldly life, as the world is deficient and is thus supplemented with sleep which is for rest. Although, it is also a deficiency from another perspective which is in regards to the Sustainer (of all of creation) which is Allah, the Honored and Glorious. Verily, Allah - the most High said:
“Neither slumber, nor sleep overtake Him.”
With His Perfect life, He does not need sleep or any other thing. He is The Self- Sustaining, The Praise Worthy – Honored and Glorious is He.
The life of human beings however, is deficient and thus need complementing. Of such complement is sleep. Sleeping signifies the fact that Allah takes the soul during sleep. However, it is not taken completely as would necessitate complete departure (from this world). This is why you will see a living person dead in reality, as he can not feel things around him, hear a word, see someone nor perceive an odor although the soul is not completely out of his body.
Allah - the most High - said:
“It is Allah Who takes away the souls at the time of their death.” (Az-Zumar: 42)
This is the ultimate death,
‘And those that die not during their sleep.’
That is, those whose soul is not taken during sleep.
'He keeps those (souls) for which He has ordained death'
That is, the first (category).
'And sends the rest,'
That is, the sleeping soul.
"For a term appointed."
This is because all things are with Allah, in measures and an appointed time. All His actions, Honored and Glorious is He, are with ultimate certain wisdom.
This sleep is a sign of Allah - Honored and Glorious is He, It comes to a group of people, for example, in their room, terrace or in the parks. They will sleep as if they are corpses, feeling nothing and Allah, Honored and Glorious is He, will later raise the group. Allah - the most High - said:
It is He, Who takes your souls by night (when you are asleep), and has knowledge of all that you have done by day, then He raises (wakes) you up again that a term appointed (your life period) be fulfilled, then in the end unto Him will be your return. Then He will inform you what you used to do." (Al-Anam: 60)
Mankind could also consider another reflection from sleep; that is, resurrection after death. This is because the One Who is capable of returning souls, such that mankind wakes up for worldly activities, is well capable of resurrecting the dead from their graves, as He is Able to do all things.
Among the etiquettes of sleeping is to sleep on the right side. This is the practice and commandment of the Prophet ﷺ. Al-Baraa bin 'Aazib - may Allah be pleased with them both - narrated that the Prophet ﷺ does sleep on his right side. The Prophet ﷺ also instructed Al- Baraa - may Allah be pleased with him - to sleep on his right side. This
is the preferable thing, whether the Qiblah is at your front or rear, at your left or right. Sleeping with the right side is the essence for the Prophet's command.
Some people are accustomed to sleeping with the left side and should they sleep with the right side, they may not be able to sleep. Such a person will have to revert himself (to the Sunnah) as the issue is not a mild one. It is established in the command and the practice of the Prophet ﷺ. So, when you sleep on the right side, you will consider yourself following the Messenger ﷺ as he does sleep on his right side, and as an adherent to his commandment in that respect. So, revert and struggle against yourself for one or two days or a week until you will be able to sleep in adherence to the Prophet's Sunnah ﷺ.
It also part of Sunnah – if possible - to place the right palm beneath the right cheek. This is established in the Prophet's practice ﷺ. If this is easy for you, it is preferable and if it is not easy, it is not as emphatic as the case is with sleeping on the right side.
Also amongst this (etiquette of sleeping) is to recite the Adkar (word of remembrance of Allah) as the Prophet ﷺ said and commanded it: 'Allahumma aslamtu nafsi ilaika, wa wajahtu wajhi ilaika, wa fawadtu amri ilaika, wa alja'atu zhari ilaika, raghbatan wa rahbatan ilaika, la malja wa la manja minka illa ilaika, aamantu bi kitabika alladhi anzalta, wa nabiyyika alladhi arsalta (meaning: O Allah, I have submitted my soul to You, I have turned my face onto You, I have committed my affairs to You and depend on You for protection out of hope in You and out of fear of You (expecting your reward and fearing your punishment). There is no sanctuary and safe haven from You but with You. I believe in the Book You have revealed and in the Prophet You have sent (that is, Muhammad ﷺ)'. And make it the last of what you say, that is, after other adhkar the like of: 'Allahumma bika wada'tu janbi wa bika arfa'uhu, in amsakta nafsi faghfir laha warhamha, wa in arsaltaha fahfazhha bima tahfazh bihi 'ibadaka As-Saaliheen – (meaning: O Allah! With Your Name I lay my side and with Your Name I will raise it. If you withhold my soul, forgive it and bless it and if you release it, protect it with that which you protect you
righteous slaves with,)(1) and such other statements.
In essence, make this Remembrance of Al-Baraa bin 'Aazib the last thing you say. The Prophet ﷺ commanded Al-Baraa to repeat this Remembrance to him and he did so saying: 'wa bi rasulika alladhi arsalta (and in your Messenger you have sent)'. The Prophet ﷺ thereupon said: 'No! Say: 'wa nabiyyika alladhi arsalta' (and in your Prophet you have sent); and do not say: 'wa bi rasulika alladhi arsalta' (and in your Messenger)'.
The people of knowledge said: 'This is because the word 'Messenger,' is used for both the human Messenger and the angel Messenger. Jibrael عليه السلام is the angel Messenger, as Allah – the most High – said:
“Verily, this is the Word (this Qur'an brought by) a most honorable Messenger [Jibrael (Gabriel), from Allah to the Prophet Muhammad (Peace be upon him)]. Owner of power, and high rank with (Allah) the Lord of the Throne.” (Takwir: 19, 20)
'The Prophet,' only refers to human Prophet. So, when you say: 'Your Prophet whom you have sent,' you are bearing witness to the Messengership and Prophethood of the Prophet ﷺ. This wording is preferable to your statement: 'and with your Messenger which you have sent.' This is because if you say: 'and with your Messenger which you have sent,' you could be referring to Jibrael as he is the Messenger whom Allah sends to the Prophets with revelation. So say: 'Your Prophet whom you have sent.'
You are thus expected to memorize this Remembrance, say it when you lie on your beds and make it the last thing you say in adherence to the command, guidance and the Sunnah of the Prophet ﷺ. This is one of the etiquettes of sleeping.
Out of Allah's Wisdom and Mercy, you will hardly find a human
action except that there is a Remembrance attached to it; dressing, eating, drinking, sleeping and even sexual intercourse; all these have words of Remembrance. Every action has some words of Remembrance. This is in order that man is not heedless of the remembrance of Allah. It allows him to remember Allah in his heart and on his tongue always. This is a favor of Allah which we beseech Him to endow us with gratefulness for assist us upon.