He committed the most shameful sins by worshipping idols, as the Amorites had done, whom the Lord had driven out of the land as the people of Israel advanced.)