He did what the Lord considered right. He lived in the ways of his ancestor David and never stopped living this way.