And they cried unto the Lord when they were in distress, and he brought them out of their afflictions.