The Prophet said: “When one of you lies down on his right side, then says: ‘O Allah, I have submitted myself to You, and I have turned my face to You, and I lay myself down relying upon You, and I have entrusted my affair to You, there is no refuge minka illā ilaik, ūminu bikitābika wa birusulika)’ – then if he dies that night, he shall enter Paradise.”
Jami` at-Tirmidhi Book 48, Hadith 26