However, Amaziah would not listen, for it was from God in order that He might deliver them into the hand of Joash because they had sought the gods of Edom.