2 Chronicles 25:19-20
25:19 You defeated Edom and it has gone to your head. Gloat over your success, but stay in your palace. Why bring calamity on yourself? Why bring down yourself and Judah along with you?”
25:20 But Amaziah did not heed the warning, for God wanted to hand them over to Joash because they followed the gods of Edom.