# what was right in the eyes of Yahweh his God
"what was right in Yahweh's judgment"
# as David his ancestor had done
David had done what is right.