David realized that the Lord had installed him as king of Israel, and had made his kingdom great for the sake of his people Israel.