1
אִם יַעֲלֶה לְךָ מַחֲשָׁבָה רָעָה, או רַק מַחֲשָׁבָה בְּטֵלָה שֶׁמְּבַלְבֶּלֶת אוֹתְךָ בִּתְפִלָּתְךָ וְתוֹרָתְךָ, הַבֵּט הַשָּׁמַיְמָה, אוֹ סְגוֹר אֶת עֵינֶיךָ, וְכוֵּן "ד' ד' אֵ-ל רַחוּם וְחַנּוּן..." (דַּוְקָא בְּמַחֲשָׁבָה וְלֹא בְּדִבּוּר) וּבֶטַח תַּעֲבֹר מֵעָלֶיךָ בְּעֶזְרַת ה'. Overcoming Pointless Thoughts
If you have a bad thought, or even just a pointless thought that is bothering you as you pray or learn Torah, look up to the heavens or close your eyes, and think the words, “Hashem, Hashem, God Who is compassionate and gracious” (Exodus 34:6). Only think these words without saying them. With God’s help, it will surely pass on.