Abu Huraira reported God’s Messenger as saying, “When one of you goes to sleep the devil ties three knots at the back of his neck, sealing every knot with, ‘You have a long night, so sleep’. So if one awakes and mentions God a knot will be loosened, if he performs ablution a knot will be loosened, and if he prays a knot will be loosened, and in the morning he will be active and in good spirits; otherwise he will be in bad spirits and sluggish in the morning.”
Rabi'a b. Ka‘b al-Aslami said he used to spend the night near the Prophet’s inner chamber and hear him say when he got up during the night, “Glory be to the Lord of the universe" for a long time. Then he would say, “Glory be to God and praise be to Him" for a longtime.
Nasa’i transmitted it, and Tirmidhi who has something similar says that this is a hasan sahih tradition.
Al-Mughira said that the Prophet got up at night to such an extent that his feet became swollen. On being asked why he did this when his former and latter sins had been forgiven him, he replied, “Should I not be a grateful servant?”
Abu Sa'id al-Khudri told that when God’s Messenger got up during the night he said, “God is most great,” then he would say, “Glory be to Thee, O God, and praise be to Thee; blessed be Thy name; exalted be Thine honour; there is no other god but Thee.” Then he would say, “God is most exceeding great;” then say, “I seek refuge in God, the Hearer and Knower, from the accursed devil, from his pricking, his blowing, and his sputtering.”
Tirmidhi, Abu Dawud and Nasa’i transmitted it, Abu Dawud adding after “no other god but Thee,” that he would then say “There is no god but God” three times, and at the end of the tradition, that he would then recite some verses.