18 They abandoned the temple of the LORD, the God of their ancestors, and worshiped Asherah poles and idols. Because of their guilt, God’s anger came on Judah and Jerusalem.

Read 2 Chronicles 24:18 Using Other Translations

And they left the house of the LORD God of their fathers, and served groves and idols: and wrath came upon Judah and Jerusalem for this their trespass.
And they abandoned the house of the LORD, the God of their fathers, and served the Asherim and the idols. And wrath came upon Judah and Jerusalem for this guilt of theirs.
They decided to abandon the Temple of the LORD, the God of their ancestors, and they worshiped Asherah poles and idols instead! Because of this sin, divine anger fell on Judah and Jerusalem.