When the Prophet Muhammad ﷺ was teaching his companions how to live, he did not only teach them what to do in the daytime. He also taught them what to do at night, when the day was ending and it was time to sleep.
The Prophet ﷺ taught that sleep is something very special. When we close our eyes and drift off, our soul rests in اللَّه's care until morning.
Some companions asked the Prophet ﷺ what they should say right before going to sleep. He taught them a beautiful short dua to say with their eyes closed, just as they were lying down. The dua is:
بِاسْمِكَ اللَّهُمَّ أَمُوتُ وَأَحْيَا
Bismika Allahumma amootu wa ahya.
It means: "In Your name, O Allah, I die and I live."
The words "die" and "live" might sound strange for a sleep dua. But the Prophet ﷺ taught us that sleeping is like a small, gentle kind of dying, because we lose track of the world around us. And waking up in the morning is like being given life again, because اللَّه gives our day back to us.
So when we say this dua at night, we are telling اللَّه: "I am giving my night to You. Take care of me while I sleep. And if You give me another morning, I will live it for You."
The Prophet ﷺ also taught us a dua to say in the morning, right when we wake up:
الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانَا بَعْدَ مَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ
Alhamdulillahil-lathee ahyana ba'da ma amatana wa ilayhin-nushoor.
It means: "All praise is for Allah, who gave us life after taking it from us, and to Him we will return."
These two duas are like a pair. One puts us into اللَّه's care at night. One thanks اللَّه for giving us a new morning. Together, they teach us that every night and every morning are gifts from اللَّه.
Sleep is a gift from Allah. The Prophet ﷺ taught us that when we sleep, we are placing ourselves in Allah's care. The little dua we say before sleeping is small enough for any kid to learn, and it turns every bedtime into a moment of connection with Allah.
Both duas are recorded in Sahih al-Bukhari. The sleep dua is narrated by Hudhayfah ibn al-Yaman (may Allah be pleased with him); the morning dua by Abu Hurairah (may Allah be pleased with him). The Prophet ﷺ said these every night and every morning of his life.