16 Then the Israelites put aside their foreign gods and served the LORD . And he was grieved by their misery.