He did what was right in the LORD's sight just as his ancestor David had done.