1שהזהירנו משאול בעל אוב. והוא אמרו יתעלה לא ימצא בך וגו' ושואל אוב. והעובר על לאו זה כלומר שישאל באוב אינו חייב מיתה אבל הוא אסור. (שם, שם):
That He prohibited us from inquiring of someone with an ov. And that is His, may He be exalted, saying, "Let no one be found among you ... or one who asks an ov" (Deuteronomy 18:10-11). And one who transgresses this negative commandment - meaning he inquires of an ov - is not liable for death, but it is forbidden. (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