Exodus 22:20

If anyone sacrifices to any god other than the Lord alone, he must be set apart for destruction.

Note Forms of the Hebrew cherem refer to the giving over of things or persons to the Lord, either by destroying them or by giving them as an offering.

BSB · Berean Standard Bible
He that sacrificeth unto any god, save unto the Lord only, he shall be utterly destroyed.
KJV · King James Version
“He who sacrifices to any god, except to the Lord only, shall be utterly destroyed.
WEB · World English Bible
He that sacrificeth unto any god, save unto Jehovah only, shall be utterly destroyed.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

sacrificeth
Numbers 25:2–4, 7, 8; Deuteronomy 13:1–15; Deuteronomy 17:2–5; Deuteronomy 18:20
utterly
Numbers 21:3; Joshua 23:15, 16