And he did very abominably in following
idols, according to all [things] as did the Amorites, whom the LORD cast out
before the children of Israel.
BSB
He committed the most detestable acts by going after idols, just like the Amorites whom the LORD had driven out before the Israelites.)
WEB
He did very abominably in following idols, according to all that the Amorites did, whom Yahweh cast out before the children of Israel.
YLT
and he doth very abominably to go after the idols, according to all that the Amorite did whom Jehovah dispossessed from the presence of the sons of Israel.’