1. Lie on your right side and recite the following dua

Allahumma khalaktha nafsee, wa’antha thavaffa haa, laka mamathu haa wamah ya haa , in ahyaitha haa fahfadhha, wa in amaththaha faghfirlaha, allahumma inni assalukal aafiya

للّهُمَّ خَلَقْتَ نَفْسِيْ وَأَنْتَ تَوَفَّاهَا لَكَ مَمَاتُهَا وَمَحْيَاهَا إِنْ أَحْيَيْتَهَا فَاحْفَظْهَا وَإِنْ أَمَتَّهَا فَاغْفِرْ لَهَا اَللّهُمَّ إِنِّيْ أَسْأَلُكَ الْعَافِيَةَ

Meaning:
O Allah, You have created my soul and You take it back. Unto You is its death and its life . If You give it life then protect it , and if You cause it to die then forgive it. O Allah, I seek with you “Aafiya(Well-being).
(Book: Muslim 4887)



2. When one of you intends to go to sleep, he should lie on the bed by his right side and then recite:

Allaahumma Rabbas-samaawaati wa Rabbal-'Arshil-'Adheem, Rabbanaa wa Rabba kulli shay 'in, faaliqal-habbi wannawaa , wa munzilat-Tawraati wal-'Injeeli, wal-Furqaani, 'a'oothu bika min sharri kulli shay 'in 'Anta 'aakhithun binaasiyatihi. Allaahumma 'Antal-'Awwalu falaysa qablaka shay'un, wa 'Antal-'Aakhiru falaysa ba'daka shay'un, wa 'Antadh-Dhaahiru falaysa fawqaka shay'un, wa 'Antal-Baatinu falaysa doonaka shay'un, iqdhi 'annad-dayna wa 'aghninaa minal-faqri.

اَللّهُمَّ رَبَّ السَّمَاوَاتِ وَرَبَّ الأَرْضِ وَرَبَّ الْعَرْشِ الْعَظِيْمِ رَبَّنَا وَرَبَّ كُلِّ شَيْءٍ فَالِقَ الْحَبِّ وَالنَّوَى وَمُنْزِلَ التَّوْرَاةِ وَالاِنْجِيْلِ وَالْفُرْقَانِ أَعُوْذُ بِكَ مِنْ شَرِّ كُلِّ شَيْءٍ أَنْتَ آخِذٌ بِنَاصِيَتِهِ اَللّهُمَّ أَنْتَ الأَوَّلُ فَلَيْسَ قَبْلَكَ شَيْءٌ وَأَنْتَ الآخِرُ فَلَيْسَ بَعْدَكَ شَيْءٌ وَأَنْتَالظَّاهِرُ فَلَيْسَ فَوْقَكَ شَيْءٌ وَأَنْتَ الْبَاطِنُ فَلَيْسَ دُونَكَ شَيْءٌ اِقْضِ عَنَّا الدَّيْنَ وَأَغْنِنَا مِنَ الْفَقْرِ

Meaning:
O Allah! Lord of the heavens and Lord of the Magnificent Throne . Our Lord and the Lord of everything . Splitter of the grain and the date-stone , Revealer of the Torah and the Injeel and the Furqan , I seek refuge in You from the evil of everything that You shall seize by the forelock. O Allah You are the First and nothing has come before you, and You are the Last, and nothing may come after You. You are the Most High, nothing is above You and You are the Most Near and nothing is nearer than You. Remove our debts from us and enrich us against poverty.
(Book: Muslim 4888)



3. When anyone of you goes to bed, he should dust it off thrice and say:

Bismika Rabbee wadha'tu janbee , wa bika 'arfa'uhu, fa'in 'amsakta nafsee farhamhaa, wa 'in 'arsaltahaa fahfadhhaa, bimaa tahfadhu bihi 'ibaadakas-saaliheen.

بِاسْمِكَ رَبّ وَضَعْتُ جَنْبِيْ وَبِكَ أَرْفَعُهُ إِنْ أَمْسَكْتَ نَفْالِ سيْصفَارْحَمْهَا وَإِنْ أَرْسَلْتَهَا فَاحْفَظْهَا بِمَا تَحْفَظُ بِهِ عِبَادَكَ اَّلِحِيْنَ

(Book: Bukhari 6320)



4. When any one of you goes to bed, he should clean his bed and should recite the name of Allah for he himself does not know what he left behind him on his bed, and when he intends to lie on bed, he should lie on his right side and utter these words:

Subhanakallahumma rabbi, bika vadha’thu janbi, vabika arfa’oo in amsaktha nafsee faghfir laha, va’in arsalthaha fahfadh ha bima thah’fadhu bihi ibadhakas saliheen.

سُبْحَانَكَ اللّهُمَّ رَبّيْ بِكَ وَضَعْتُ جَنْبِيْ وَبِكَ أَرْفَعُهُ إِنْ أَمْسَكْتَ نَفْسِيْ فَاغْفِرْ لَهَا وَإِنْ أَرْسَلْتَهَا فَاحْفَظْهَا بِمَا تَحْفَظُ بِهِ عِبَادَكَ الصَّالِحِيْنَ

Meaning:
Hallowed be Allah, my Lord. It is with Thine (grace) that I place my side (upon the bed) and it is with Thee that I take it up (after sleep), and in case Thou withholdst my being (if thou causest me to die), then grant pardon to my being, and if Thou keepst (this process of breathing on), then protect it with that with which Thou protected Thine pious servants.
(Book: Muslim 4889)



5. The Prophet said, “Whenever you go to your bed, recite the Verse of "Al-Kursi" (Al-Quran: 2:255) for then a guardian from Allah will be guarding you, and Satan will not approach you till dawn.”

Allaahu laa 'ilaaha 'illaa Huwal-Hayyul-Qayyoom, laa ta'khuthuhu sinatun wa laa nawm, lahu maa fis-samaawaati wa maa fil-'ardh, man thal-lathee yashfa'u 'indahu 'illaa bi'ithnihi, ya'lamu maa bayna 'aydeehim wa maa khalfahum, wa laa yuheetoona bishay'im-min 'ilmihi 'illaa bimaa shaa'a, wasi'a kursiyyuhus-samaawaati wal'ardha, wa laa ya'ooduhu hifdhuhumaa, wa Huwal- 'Aliyyul- 'Adheem.

اللهُ لَا إِلَهَ إِلَّا هُوَ الْحَيُّ الْقَيُّومُ لَا تَأْخُذُهُ سِنَةٌ وَلَا نَوْمٌ لَهُ مَا فِي السَّمَاوَاتِ وَمَا فِي الْأَرْضِ مَنْ ذَا الَّذِي يَشْفَعُ عِنْدَهُ إِلَّا بِإِذْنِهِ يَعْلَمُ مَا بَيْنَ أَيْدِيهِمْ وَمَا خَلْفَهُمْ وَلَا يُحِيطُونَ بِشَيْءٍ مِنْ عِلْمِهِ إِلَّا بِمَا شَاءَ وَسِعَ كُرْسِيُّهُ السَّمَاوَاتِ وَالْأَرْضَ وَلَا يَئُودُهُ حِفْظُهُمَا وَهُوَ الْعَلِيُّ الْعَظِيمُ


Meaning:

Allah! There is no God but He, the Ever Living, the One Who sustains and protects all that exists. Neither slumber nor sleep overtakes Him. To Him belongs whatever is in the heavens and whatever is on the earth. Who is he that can intercede with Him except with His Permission? He knows what happens to them in this world, and what will happen to them in the Hereafter. And they will never encompass anything of His Knowledge except that which He wills. His Throne extends over the heavens and the earth, and He feels no fatigue in guarding and preserving them. And He is the Most High, the Most Great. (Al Quran 2:255)

(Book: Bukhari 3275)



6. Allah's Apostle (p) said,” These two Verses will be sufficient for anyone who recites them at night”.
(Book: Bukhari 4008, 5010, 5040, 5051)



7. Whenever Allah's Apostle went to bed, he used to recite Surat-al-Ikhlas (Al-Quran 112), Surat-al-Falaq (Al-Quran 113) and Surat-an-Nas (Al-Quran 114) and then blow on his palms and pass them over his face and those parts of his body that his hands could reach.
(Book: Bukhari 5018, 5748, 6319)



8. The Prophet said to me, "Whenever you go to bed perform ablution like that for the prayer, lie or your right side and recite below mentioned dua, Then if you die on that very night, you will die with faith (i.e. or the religion of Islam). Let the aforesaid words be your last utterance (before sleep).

Allahumma aslamthu wajhee ilaika, wafavvadhthu amree ilaika, wa al ja’athu dhahree ilaika, raghbathan warahbathan ilaika, laa malja’aa wala manja’aa minka illa ilaika, allahumma a’amanthu bikithabikallazi anzaltha wanabiyikallazi arsaltha.

اَللّهُمَّ أَسْلَمْتُ وَجْهِيْ إِلَيْكَ وَفَوَّضْتُ أَمْرِيْ إِلَيْكَ وَأَلْجَأْتُ ظَهْرِيْ إِلَيْكَ رَغْبَةً وَرَهْبَةً إِلَيْكَ لَا مَلْجَأَ وَلَا مَنْجَا مِنْكَ إِلَّا إِلَيْكَ اَللّهُمَّ آمَنْتُ بِكِتَابِكَ الَّذِي أَنْزَلْتَ وَبِنَبِيِّكَ الَّذِي أَرْسَلْتَ

Meaning:
O Allah! I surrender to You and entrust all my affairs to You and depend upon You for Your Blessings both with hope and fear of You. There is no fleeing from You, and there is no place of protection and safety except with You O Allah! I believe in Your Book (the Qur'an) which You have revealed and in Your Prophet (Muhammad) whom You have sent.
(Bukhari 247, 6313, 6315, 7488, 6311, 7488)