David summoned representatives of the priesthood, the prophets, and the royal guard to ensure that Solomon had the support of legitimate members of all the most important bodies of government in Israel. David named his successor, the legitimate high priest anointed him, and the general of Israel's armies ensured that the new king's position was secure.
God chooses rulers, but men must also choose them by acknowledging, supporting, submitting to them as they submit to God and to his commandments.
1 Kings 1:32