He committed the most shameful sins by worshiping idols, as the Amorites had done, whom the Lord had driven out of the land as the people of Israel advanced.)
and they burned incense on all the pagan altars, following the practice of the people whom the Lord had driven out of the land. They aroused the Lord's anger with all their wicked deeds
I brought them to the land I had promised to give them. When they saw the high hills and green trees, they offered sacrifices at all of them. They made me angry by the sacrifices they burned and by the wine they brought as offerings.
and then you will not associate with these peoples left among you or speak the names of their gods or use those names in taking vows or worship those gods or bow down to them.