When he went to bed or awoke from sleep, he recited this du'a: "There is no god but Allah the Alive, the Eternal, and He has power over all things. Glory be to Allah, the Lord of the worlds and the Deity of the messengers. Glory be to Allah, the Lord of the seven heavens and all that which they have, and the Lord of the seven earths and all that which they have, the Lord of the Great Throne, and peace be on the messengers, and praise be to Allah the Lord of the worlds."
The Du'a of