Now it came to pass, after Amaziah had come from the slaughter of the Edomites, that he brought the gods of the children of Seir and set them up to be his gods, and bowed down himself before them and burned incense unto them.
Therefore the anger of the LORD was kindled against Amaziah, and He sent unto him a prophet, who said unto him, "Why hast thou sought after the gods of the people, which could not deliver their own people out of thine hand?"
And it came to pass as he talked with him, that the king said unto him, "Art thou made the king's counsel? Forbear! Why should thou be smitten?" Then the prophet forbore and said, "I know that God hath determined to destroy thee, because thou hast done this and hast not hearkened unto my counsel."
Then Amaziah king of Judah took advice, and sent to Joash the son of Jehoahaz, the son of Jehu, king of Israel, saying, "Come, let us look one another in the face."
And Joash king of Israel sent to Amaziah king of Judah, saying, "The thistle that was in Lebanon sent to the cedar that was in Lebanon, saying, `Give thy daughter to my son as wife'; and there passed by a wild beast that was in Lebanon, and trod down the thistle.
Thou sayest, `Lo, thou hast smitten the Edomites,' and thine heart lifteth thee up to boast. Abide now at home. Why shouldest thou meddle to thine hurt, that thou shouldest fall, even thou and Judah with thee?"
But Amaziah would not hear; for it came from God, that He might deliver them into the hand of their enemies, because they sought after the gods of Edom.
So Joash the king of Israel went up; and they looked one another in the face, both he and Amaziah king of Judah, at Bethshemesh, which belongeth to Judah.
And Judah was smitten before Israel, and they fled every man to his tent.
And Joash the king of Israel took Amaziah king of Judah, the son of Joash, the son of Jehoahaz, at Bethshemesh; and he brought him to Jerusalem, and broke down the wall of Jerusalem from the Gate of Ephraim to the Corner Gate, four hundred cubits.
And he took all the gold and the silver, and all the vessels that were found in the house of God with Obededom, and the treasures of the king's house, the hostages also, and returned to Samaria.