He did what the LORD considered to be right, according to everything that his ancestor David had done.