1 Kings 1:28-37 (NRSV)
King David answered, "Summon Bathsheba to me." So she came into the king's presence, and stood before the king. The king swore, saying, "As the LORD lives, who has saved my life from every adversity, as I swore to you by the LORD, the God of Israel, 'Your son Solomon shall succeed me as king, and he shall sit on my throne in my place,' so will I do this day." Then Bathsheba bowed with her face to the ground, and did obeisance to the king, and said, "May my lord King David live forever!"
King David said, "Summon to me the priest Zadok, the prophet Nathan, and Benaiah son of Jehoiada." When they came before the king, the king said to them, "Take with you the servants of your lord, and have my son Solomon ride on my own mule, and bring him down to Gihon. There let the priest Zadok and the prophet Nathan anoint him king over Israel; then blow the trumpet, and say, 'Long live King Solomon!' You shall go up following him. Let him enter and sit on my throne; he shall be king in my place; for I have appointed him to be ruler over Israel and over Judah." Benaiah son of Jehoiada answered the king, "Amen! May the LORD, the God of my lord the king, so ordain. As the LORD has been with my lord the king, so may he be with Solomon, and make his throne greater than the throne of my lord King David."