2 Chronicles 19:2-3
19:2 the prophet Jehu son of Hanani confronted him; he said to King Jehoshaphat, “Is it right to help the wicked and be an ally of those who oppose the Lord? Because you have done this the Lord is angry with you!
19:3 Nevertheless you have done some good things; you removed the Asherah poles from the land and you were determined to follow the Lord.”