They got rid of the foreign gods among them and served Yahweh, and he could no longer bear to see Israel suffer.
In context
14Go and cry out to the gods you have chosen. Let them save you in your time of trouble.” 15The Israelites said to Yahweh, “We have sinned. Do to us whatever seems right to you, only rescue us today, we beg you.” 16They got rid of the foreign gods among them and served Yahweh, and he could no longer bear to see Israel suffer. 17Then the Ammonites were called together and camped in Gilead, and the Israelites gathered together and camped at Mizpah. 18The people, the leaders of Gilead, said to one another, “Whoever will lead the attack against the Ammonites will become head over all who live in Gilead.”