Negative commandment · Lo Ta’aseh #35 of 613
Not to cast spells
שלא לחבור חבר
The verse · Devarim 18:11
וְחֹבֵר חָבֶר וְשֹׁאֵל אוֹב וְיִדְּעֹנִי וְדֹרֵשׁ אֶל־הַמֵּתִים
“or a charmer, or a medium, or a wizard, or a necromancer.”
The Rambam’s words
Not to cast spells, as [Deuteronomy 18:11] states: "[There shall not be found among you...] one who casts spells."
שלא לחבור חבר, שנאמר "וחובר, חבר" (דברים יח,יא).
Who & when
“And this prohibition is practiced in every place and at all times by males and females.”
Where in the Mishneh Torah
Hilchot Foreign Worship and Customs of the Nations הלכות עבודה זרה וחוקות הגויים