אם מתאוה לאיזה עבירה יאמר הפסוקים של העבירה ההוא בטעמים ובנקודות בדחילו ורחימו. ואז תלך ממנו התאוה ההיא. ואם מתאוה לאיזה מדה רעה ח"ו אזי יאמר הששה עמים הכנעני וכו' בכל כחו בדחילו ורחימו ותסתלק ממנו: (צוואת הריב"ש ד"ג ע"א)
If you feel the desire to commit a sin, recite the Torah verses that speak of that sin, with all its syllables and cantillation marks, in fear and love of G-d, and the desire will pass. Likewise, if you feel overwhelmed by some bad trait, say the names of the six nations:6It is not clear whether the Baal Shem Tov means the six nations mentioned in this verse, or in the verse from Nechemiah 9:8: “You found his heart faithful before You, and made a covenant with him to give the land of the Canaanite, the Hittite, the Amorite, and the Perizzite, and the Jebusite, and the Girgashite, even to give it to his seed.” R. Elimelech of Lizensk, in the Tzetel Katan (the “Small Letter”), writes that a person should say the names of all seven nations. the Canaanites, etc., with absolute concentration, in fear and love, and the bad trait will pass. Tzava’as HaRivash, p.3a
אם מתאוה לאיזה עבירה יאמר הפסוקים של העבירה ההוא בטעמים ובנקודות בדחילו ורחימו. ואז תלך ממנו התאוה ההיא. ואם מתאוה לאיזה מדה רעה ח"ו אזי יאמר הששה עמים הכנעני וכו' בכל כחו בדחילו ורחימו ותסתלק ממנו:
(צוואת הריב"ש ד"ג ע"א)
If you feel the desire to commit a sin, recite the Torah verses that speak of that sin, with all its syllables and cantillation marks, in fear and love of G-d, and the desire will pass. Likewise, if you feel overwhelmed by some bad trait, say the names of the six nations:6It is not clear whether the Baal Shem Tov means the six nations mentioned in this verse, or in the verse from Nechemiah 9:8: “You found his heart faithful before You, and made a covenant with him to give the land of the Canaanite, the Hittite, the Amorite, and the Perizzite, and the Jebusite, and the Girgashite, even to give it to his seed.” R. Elimelech of Lizensk, in the Tzetel Katan (the “Small Letter”), writes that a person should say the names of all seven nations. the Canaanites, etc., with absolute concentration, in fear and love, and the bad trait will pass.
Tzava’as HaRivash, p.3a