To rest our heads, close our eyes and drift into an almost death is to rest our bodies from the physical duties of worshipping Him.
Every other moment we have been blessed with and every action should be in adherence to worshipping Allah (swt).
Allah’s Messenger said, “Verily, all actions are but driven by intention and for everyone is what he intended.” (Al-Bukhari and Muslim)
The Prophet is telling us that actions are defined through intentions and this is what Allah (swt) will judge us upon.
The Prophet said, “He, who seriously considered doing a good deed but did not do it, will have one good deed recorded for him” (Muslim).
Allah is Al-Latif and will reward us for just contemplating wanting to do a good deed as well as giving us credit when we fulfill it. And yet again He is Ar Rahman when He rewards us even when we want to commit a sin but refrain from doing it in fear of His all-powerful wrath.
“But if he intends to do an evil act and has not done it, then Allah writes it down with Him as a full good deed, but if he intends it and has done it, Allah writes it down as one bad deed” (Al-Bukhari and Muslim).
Allah (swt) says in the Qu’ran, “I did not create the jinns and the humans except to worship Me alone” (51:56). It is clear that our goals in this dunya are to serve: not to serve our desires, or our families wants, or what society hammers us to do. We have come into existence to serve Allah (swt) and disregard all other goals that go against the Qu’ran and Sunnah.
The Prophet said, “He who lets the people hear of his good deeds intentionally, to win their praise, Allah will let the people know his real intention (on the Day of Resurrection), and he who does good things in public to show off and win the praise of the people, Allah will disclose his real intention (and humiliate him). (Al-Bukhari)