Deuteronomy 20:18

NLT
New Living Translation

18This will prevent the people of the land from teaching you to imitate their detestable customs in the worship of their gods, which would cause you to sin deeply against the Lord your God.