"He did evil because he had not set his heart on seeking the Lord." (NIV)
2 Chronicles 12:14
ESV - 14 And he did evil, for he did not set his heart to seek the Lord.
For follow-up discussion and general commentary on the topic. Comments are sorted chronologically.