1הזהירנו מעשות הכשוף כלו. והוא אמרו לא ימצא בך וגו' ומכשף, והעובר על לאו זה חייב סקילה במזיד ובשוגג חטאת קבועה. והתבארו משפטי מצוה זו בפ"ז מסנהדרין. (שם, שם):
He prohibited us from witchcraft entirely. And that is His saying, "Let no one be found among you who [...] is a sorcerer" (Deuteronomy 18:10). And one who transgresses this negative commandment is liable for stoning when volitional; and a fixed sin-offering when inadvertent. And the regulations of this commandment have been explained in Chapter 7 of Sanhedrin. (See Parashat Shoftim; Mishneh Torah, Foreign Worship and Customs of the Nations 11.)
The Rambam's count of the 613 mitzvos. English: Rabbi Francis Nataf, Sefaria 2021 (CC-BY). Hebrew: Warsaw 1883. Via Sefaria. All the library · Jer’s Torah Page