David knew that Yahweh had established him as king over Israel, and that he had exalted his kingdom for the sake of his people Israel.