See Amos 1:3-4
1 Thus says the Lord: “For three transgressions of Damascus, and for four, I will not revoke the punishment, because they have threshed Gilead with threshing sledges of iron. 4 So I will send a fire upon the house of Hazael, and it shall devour the strongholds of Ben-hadad.
2 Kings 13:1-7 tells us in verse 3 that God "gave them (Israel) continually into the hand of Hazael king of Syria and into the hand of Ben-hadad the son of Hazael" for the sins of Jehoahaz. God then delivered Israel from Syria, but Israel persisted in their sin (v. 4-6).
In Amos 1:3-5, Syria is punished for "threshing Gilead." I am trying to understand why God is punishing Syria for attacking Israel after it appears that God seemed to cause ("gave them into the hand" is how ESV translates it) Syria to attack Israel as punishment for their sins.