2 Chronicles 25:20-24

God lets Israel win the fight to punish Amaziah

20 But Amaziah refused to listen. God had decided that he would cause Joash's army to win the fight. That was because Amaziah had worshipped Edom's gods. 21 So Joash, Israel's king attacked Amaziah, the king of Judah. They stood at Beth-Shemesh in Judah. And they were looking at each other. 22 Israel's army beat Judah's army completely. So every soldier from Judah ran away to his tent. 23 Joash, the king of Israel caught Amaziah the son of Joash, the son of Jehoahaz, the king of Judah. He caught him at Beth-Shemesh and he took him to Jerusalem. Then Joash broke the wall of Jerusalem, from the Ephraim Gate to the Corner Gate. That part of the wall was about 180 metres (600 feet) long. 24 He took all the gold and the silver from the house of God. And he took all the other things that Obed-Edom was keeping in God's house. Joash also took the valuable things from the king's house and some foreign men that Amaziah had kept there. Then he returned to Samaria.

25:23Jehoahaz is another name for Ahaziah.