2 Chronicles 25:15-16; 2 Chronicles 25:20

15 This made the LORD very angry, and he sent a prophet to ask, "Why have you worshiped gods who could not even save their own people from you?" 16 But the king interrupted him and said, "Since when have I asked your advice? Be quiet now before I have you killed!" So the prophet left with this warning: "I know that God has determined to destroy you because you have done this and have not accepted my counsel."
20 But Amaziah would not listen, for God was arranging to destroy him for worshiping the gods of Edom.