but instead sought the God of his ancestors and obeyed his commands, unlike the Israelites.