2 He did evil in the eyes of the LORD, following the detestable practices of the nations the LORD had driven out before the Israelites.

Read 2 Kings 21:2 Using Other Translations

And he did that which was evil in the sight of the LORD, after the abominations of the heathen, whom the LORD cast out before the children of Israel.
And he did what was evil in the sight of the LORD, according to the despicable practices of the nations whom the LORD drove out before the people of Israel.
He did what was evil in the LORD ’s sight, following the detestable practices of the pagan nations that the LORD had driven from the land ahead of the Israelites.