but he sought after the God of his ancestors and walked in his commandments and not according to the works of Israel.