So at that time the people of Israel were defeated. And the people of Judah won, because they depended on the Lord, the God of their ancestors.