When Allah's Messenger (ﷺ) went to bed, he used to sleep on his right side and then say…

Sahih al-Bukhari Book 80 Hadith 12

Sahih al-Bukhari #6315

Invocations 80:12

Narrated Al-Bara' bin `Azib:

When Allah's Messenger (ﷺ) went to bed, he used to sleep on his right side and then say, "All-ahumma aslamtu nafsi ilaika, wa wajjahtu wajhi ilaika, wa fauwadtu `Amri ilaika, wa alja'tu zahri ilaika, raghbatan wa rahbatan ilaika. La Malja'a wa la manja minka illa ilaika. Amantu bikitabika al-ladhi anzalta wa nabiyyika al-ladhi arsalta! Allah's Messenger (ﷺ) said, "Whoever recites these words (before going to bed) and dies the same night, he will die on the Islamic religion (as a Muslim).

Chapter: Sleeping on the right side

Grade: Sahih