“And king David said, Call me Zadok the priest, and Nathan the prophet, and Benaiah the son of Jehoiada. And they came before the king. The king also said unto them, Take with you the servants of your lord, and cause Solomon my son to ride upon mine own mule, and bring him down to Gihon: and let Zadok the priest and Nathan the prophet anoint him there king over Israel: and blow ye with the trumpet, and say, God save king Solomon. Then ye shall come up after him, that he may come and sit upon my throne; for he shall be king in my stead: and I have appointed him to be ruler over Israel and over Judah.” 1Kings 1:32-35 (KJV)
The kingdom of David was fairly well at peace, until the king committed adultery with Bathsheba, and murdered Uriah. Following that tragedy in the life of David his judgment was continuing conflict within his own family.
Adonijah, a son of David, tries to set himself up as king (1 Kings 1:5); and Nathan the prophet comes to Bathsheba to warn her. It has already been stated that God loved Solomon (2 Samuel 12:24), and has been promised the kingdom.
Notice how David sends Solomon out declaring him king, rather than Adonijah; “…Cause Solomon my son to ride upon mine own mule…” Absalom was not the new king of Israel; he was dead. Adonijah was not the new king of Israel; he is too full of himself.
Just as the first two kings were anointed by a prophet and a priest; so too is Solomon. The new king, anointed by God was Solomon. This is the family dynasty of kings into which Jesus the King of all kings has been born; and He ever lives. Jesus Christ will reign forever.
Trust Jesus the Christ, Son of God and God the Son King in your life.