6 The people of Israel again did what was evil in the sight of the Lord and served the Baals and the Ashtaroth, the gods of Syria, the gods of Sidon, the gods of Moab, the gods of the Ammonites, and the gods of the Philistines. And they forsook the Lord and did not serve him. 7So the anger of the Lord was kindled against Israel, and he sold them into the hand of the Philistines and into the hand of the Ammonites, 8and they crushed and oppressed the people of Israel that year. For eighteen years they oppressed all the people of Israel who were beyond the Jordan in the land of the Amorites, which is in Gilead. 9And the Ammonites crossed the Jordan to fight also against Judah and against Benjamin and against the house of Ephraim, so that Israel was severely distressed.
10And the people of Israel cried out to the Lord, saying, “We have sinned against you, because we have forsaken our God and have served the Baals.” 11And the Lord said to the people of Israel, “Did I not save you from the Egyptians and from the Amorites, from the Ammonites and from the Philistines? 12The Sidonians also, and the Amalekites and the Maonites oppressed you, and you cried out to me, and I saved you out of their hand. 13Yet you have forsaken me and served other gods; therefore I will save you no more. 14Go and cry out to the gods whom you have chosen; let them save you in the time of your distress.” 15And the people of Israel said to the Lord, “We have sinned; do to us whatever seems good to you. Only please deliver us this day.” 16So they put away the foreign gods from among them and served the Lord, and he became impatient over the misery of Israel.
17Then the Ammonites were called to arms, and they encamped in Gilead. And the people of Israel came together, and they encamped at Mizpah. 18And the people, the leaders of Gilead, said one to another, “Who is the man who will begin to fight against the Ammonites? He shall be head over all the inhabitants of Gilead.”
source