Guidance on Overcoming Distracting Thoughts in Prayer (Igros Kodesh Vol 9:2875) ב"ה, 26 of Menachem Av, 5714 Brooklyn. Shalom and blessings! In response to your letter in which you write about your study schedule and conclude that foreign thoughts are confusing you during your prayer service, it is already known that the matters regarding this are that the observance of the sanctity of the covenant and the tongue minimizes foreign thoughts. Additionally, it is necessary for the book or the prayer book to be open before you, as the letters illuminate and drive away thoughts that are not relevant. According to what is explained in Likkutei Torah, Parshat Kedoshim, when the letters of the Torah, in general, and specifically the letters of the inner Torah, are engraved in one's mind, this gradually diminishes the letters of thought that oppose them. May the Holy One, Blessed be He, grant you good tidings in all of the above. With blessings, In the name of the Rebbe, my master, may he live long Secretary [Translated from the Hebrew original, Igros Kodesh Vol 9, Letter 2875] Source: Igros Kodesh (chabadlibrary.org), translated from the Hebrew - http://chabadlibrary.org:80/books/admur/ig/9/2875.htm