Deuteronomy 18:9
When thou art come into the land which the Lord thy God giveth thee, thou shalt not learn to do after the abominations of those nations.
Cross-reference
Deuteronomy 12:29-31 warns against adopting Canaanite practices after entering the land, reinforcing the same prohibition against learning their abominations.
Deuteronomy 12:31 describes the detestable practices of the nations, including child sacrifice, giving concrete examples of what to avoid.
Leviticus 18:26 commands Israel to avoid the abominations of the nations, matching the explicit warning in Deut 18:9 not to learn such practices.
Leviticus 18:27 explains that the Canaanites committed these abominations, defiling the land — providing the rationale behind the command to avoid them.
In Leviticus 18:30, the same command to keep God's requirements and avoid detestable customs of the nations reinforces this prohibition.
2 Kings 17:8 records Israel actually following the practices of the nations, serving as a historical example of the disobedience warned against.
2 Chronicles 33:2 describes Manasseh doing evil by following the detestable practices of the nations, directly violating this command.
Ezra 9:1 mentions the people not separating from detestable practices of the Canaanites, echoing the very warning given here.