Deuteronomy 20:16-18

Deuteronomy 20:16-18 AMP

Only in the cities of these peoples that the LORD your God is giving you as an inheritance, you shall not leave alive anything that breathes. But you shall utterly destroy them, the Hittite, the Amorite, the Canaanite, the Perizzite, the Hivite and the Jebusite, just as the LORD your God has commanded you, so that they will not teach you to act in accordance with all the detestable practices which they have done [in worship and service] for their gods, and in this way cause you to sin against the LORD your God.

Read Deuteronomy 20