Sahih Muslim Book 35, Hadith Number 6555.
Chapter : Supplication at the time of sleeping and going to bed.
This hadith has been narrated on the authority of Ubaidullah b. Umar with the same chain of transmitters and he said: Then utter: “My Lord. with Thine name I place my side and if Thou keepest me alive have mercy upon myself”