Abu Masʿud al-Ansari (may Allah be pleased with him) narrated that the Prophet, peace and blessings be upon him, said: “Whoever recites the last two verses of Surat al-Baqarah every night, they will suffice him.” Agreed upon.
ʿAli (may Allah be pleased with him) said, “I never imagined that any rational person would go to sleep before reciting the last three verses of Surat al-Baqarah.”
Abu Hurayrah (may Allah be pleased with him) reported that the Messenger of Allah, peace and blessings be upon him, said: “When one of you gets up from his bed and then returns to it, let him brush it off with the edge of his lower garment three times, for he does not know what may have settled on it after he left. And when he lies down, let him say: Bismika rabbī waḍaʿtu janbī wa bika arfaʿuhu (In Your name, my Lord, I lay down my side, and by Your leave I raise it up). If You hold my soul back, have mercy on it; and if You release it, then protect it in the manner You protect Your righteous servants.” Agreed upon.
In another wording: “When one of you awakes, let him say, Al-ḥamdu lillāh alladhī ʿāfānī fī jasadī, wa radda ʿalayya rūḥī, wa adhina lī bidhikrih (Praise be to Allah who has granted health to my body, restored my soul to me, and allowed me to remember Him).”
ʿAli (may Allah be pleased with him) also narrated: “Fāṭimah (may Allah be pleased with her) once came to the Prophet, peace and blessings be upon him, to ask him for a servant. Not finding him, she met ʿĀʾishah and informed her of her request. ʿAli said: The Prophet, peace and blessings be upon him, then came to us after we had already lain down in our beds and said: