but when they turned to the LORD God of Israel in their distress and sought him, he was found by them.