And David knew that YHWH had established him as king over Israel, and that He had lifted up his kingdom for the sake of His people Israel.