They made a covenant in which they agreed to worship the Lord, the God of their ancestors, with all their heart and soul.