Allah—exalted is He—encompasses all things, and His knowledge surrounds everything, even the thoughts you keep to yourself. While you are reflecting inwardly, He knows exactly what is passing through your soul. Allah says, “We created man, and We know the whisperings of his soul” (Q 50:16). So beware of hiding within yourself what Allah will bring to light; beware of harboring anything that displeases Him.
The point is that this supplication is prescribed every morning and every evening: “In the name of Allah, by whose name nothing in the earth or the heaven can cause harm; He is the All-Hearing, the All-Knowing.”
1459 – ʿAlī (may Allah be pleased with him) reported that the Messenger of Allah, peace and blessings be upon him, said to him and to Fāṭimah (may Allah be pleased with her): “When the two of you retire to your bed, say takbīr (Allāhu akbar) thirty-three times, tasbīḥ (Subḥān Allah) thirty-three times, and taḥmīd (Al-ḥamdu lillāh) thirty-three times.” In another wording the tasbīḥ is thirty-four times, and in yet another the takbīr is thirty-four times. Agreed upon.
1460 – Abu Hurayrah (may Allah be pleased with him) said: The Messenger of Allah, peace and blessings be upon him, stated, “When one of you goes to bed, let him brush the bed with the inside of his garment, for he does not know what may have settled on it. Then let him say, ‘Bismika rabbī waḍaʿtu janbī wa bika arfaʿuhu; in amsakta nafsī fa-rḥamhā wa in…’ (In Your name, my Lord, I lay down my side and by You I raise it up; if You take my soul, then have mercy on it, and if …).”