Deuteronomy 20:15-17 - WEB
15
Thus shall you do to all the cities which are very far off from you, which are not of the cities of these nations.
16
But of the cities of these peoples, that Yahweh your God gives you for an inheritance, you shall save alive nothing that breathes;
17
but you shall utterly destroy them: the Hittite, and the Amorite, the Canaanite, and the Perizzite, the Hivite, and the Jebusite; as Yahweh your God has commanded you;
Full Chapter