He served his father's God, obeyed God's commands, and did not act in the way the kings of Israel did.