Negative commandment · Lo Ta’aseh #34 of 613
Not to practice sorcery
שלא לכשף
The verse · Devarim 18:10
לֹא־יִמָּצֵא בְךָ מַעֲבִיר בְּנוֹ־וּבִתּוֹ בָּאֵשׁ קֹסֵם קְסָמִים מְעוֹנֵן וּמְנַחֵשׁ וּמְכַשֵּׁף
“There must not be found among you anyone that makes his son or his daughter to pass through the fire, or that uses divination, a soothsayer, or an enchanter, or a witch,”
The Rambam’s words
Not to practice sorcery, as [Deuteronomy 18:10] states: "There shall not be found among you... a sorcerer."
שלא לכשף, שנאמר "לא יימצא בך . . . ומכשף" (דברים יח,י).
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 הלכות עבודה זרה וחוקות הגויים