-Al-Bara’ bin Azib Allah be pleased with him said: Messsenger of Allah peace and blessings of Allah be upon him asked me to recite whenever I go to bed: “Allahumma aslamtu nafsi ilaika , wa wajjahtu wajhi ilaika, wa fawwadtu amri ilika, wal-ja’tu zahri ilaika, raghbatan wa rahbatan ilaika, la malja wa la manja minka illa ilaika. Amantu bikitabikal-ladhi anzalta, wa nabiyyikal-ladhi arsalta (O Allah! I have submitted myself to You, I have turned my face to You, entrusted my affairs to You; and committed my back to You out of desire for You and fear of You ; expecting Your reward and fearing Your punishment) . There is no refuge and no place of safety from You but with You. I believe in the Book of You have revealed and in the Prophet You have sent. “ Messenger of Allah said that if anyone recited these words and died that night, he would die in the true religion. In case he remains alive till morning, he will obtain good.
(Al-Bukhari and Muslim)