6 Then the sons of Israel again did evil in the sight of the LORD, served the Baals and the Ashtaroth, the gods of Aram, the gods of Sidon, the gods of Moab, the gods of the sons of Ammon, and the gods of the Philistines; thus they forsook the LORD and did not serve Him. 7 The anger of the LORD burned against Israel, and He sold them into the hands of the Philistines and into the hands of the sons of Ammon. 8 They afflicted and crushed the sons of Israel that year; for eighteen years they afflicted all the sons of Israel who were beyond the Jordan in Gilead in the land of the Amorites. 9 The sons of Ammon crossed the Jordan to fight also against Judah, Benjamin, and the house of Ephraim, so that Israel was greatly distressed.
10 Then the sons of Israel cried out to the LORD, saying, "We have sinned against You, for indeed, we have forsaken our God and served the Baals." 11 The LORD said to the sons of Israel, "Did I not deliver you from the Egyptians, the Amorites, the sons of Ammon, and the Philistines? 12 "Also when the Sidonians, the Amalekites and the Maonites oppressed you, you cried out to Me, and I delivered you from their hands. 13 "Yet you have forsaken Me and served other gods; therefore I will no longer deliver you. 14 "Go and cry out to the gods which you have chosen; let them deliver you in the time of your distress." 15 The sons of Israel said to the LORD, "We have sinned, do to us whatever seems good to You; only please deliver us this day." 16 So they put away the foreign gods from among them and served the LORD; and He could bear the misery of Israel no longer.
17 Then the sons of Ammon were summoned and they camped in Gilead. And the sons of Israel gathered together and camped in Mizpah. 18 The people, the leaders of Gilead, said to one another, "Who is the man who will begin to fight against the sons of Ammon? He shall become head over all the inhabitants of Gilead."