But Amaziah would not listen. God caused this to happen so that Jehoash would defeat Judah, because Judah asked for help from the gods of Edom.