He practiced what the LORD considered to be right, following all of the examples set by his ancestor David.