Deuteronomy 20:18

16 However, in the cities of the nations that the LORD your God is giving you as an inheritance, you must not leave alive anything that breathes.

17 For you must devote them to complete destruction —the Hittites, Amorites, Canaanites, Perizzites, Hivites, and Jebusites—as the LORD your God has commanded you,

so that they cannot teach you to do all the detestable things they do for their gods, and so cause you to sin against the LORD your God.

19 When you lay siege to a city for an extended time while fighting against it to capture it, you must not destroy its trees by putting an axe to them, because you can eat their fruit. You must not cut them down. Are the trees of the field human, that you should besiege them?

20 But you may destroy the trees that you know do not produce fruit. Use them to build siege works against the city that is waging war against you, until it falls.

This was said to Israel at a particular time, so it is wise to read it together with the surrounding text. Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
so that they cannot teach you to do all the detestable things they do for their gods, and so cause you to sin against the LORD your God.
KJV
That they teach you not to do after all their abominations, which they have done unto their gods; so should ye sin against the LORD your God.
WEB
that they not teach you to follow all their abominations, which they have done for their gods; so would you sin against the LORD your God.
ASV
that they teach you not to do after all their abominations, which they have done unto their gods; so would ye sin against Jehovah your God.
DARBY
that they teach you not to do according to all their abominations, which they have done unto their gods, so that ye sin against Jehovah your God.
BLB
so that they will not teach you⁺ to do according to all their abominations that they have done for their gods, and cause you⁺ to sin against YHWH your⁺ God.
ÅB
for at de ikke skal lære dere å ta etter alle de avskyelige ting som de har gjort for sine guder, så dere synder mot Herren deres Gud.
OTB
Ellers vil de lære deg å følge alle de avskyelige skikkene de utfører for sine guder, og du vil synde mot Herren din Gud.
B1930
forat de ikke skal lære eder å ta efter alle de vederstyggelige ting som de har gjort for sine guder, så I synder mot Herren eders Gud.

Study notes (Tyndale)

Original text and word study

Cross references