2 Chronicles 25:20-22 New King James Version (NKJV)

20. But Amaziah would not heed, for it came from God, that He might give them into the hand of their enemies, because they sought the gods of Edom.

21. So Joash king of Israel went out; and he and Amaziah king of Judah faced one another at Beth Shemesh, which belongs to Judah.

22. And Judah was defeated by Israel, and every man fled to his tent.

2 Chronicles 25