After being told of Adonijah’s schemes, David called for Bathsheba. David reaffirmed his commitment to make Solomon king. He instructed Zadok the priest, Nathan the prophet, and Benaiah to take Solomon–on David’s donkey–to Gihon to anoint him king over all Israel. When Solomon was anointed, all the people cried “Long Live King Solomon,” and the ground shook. Adonijah was afraid, and went to the tabernacle and took hold of the horns of the altar, refusing to leave until Solomon promised not to kill him. Solomon promised to let him live if he was righteous. Then he came to Solomon, bowed before him, and Solomon sent him to his house.
When David was near death, he called for Solomon and instructed him to be strong, and stand in the ways of the Lord all his days. If he did, David’s sons would sit on the throne forever. He instructed him to kill Joab because of his bloodthirsty ways, to be kind to the sons of Barzillai, who was David’s ally, and to kill Shimei, who cursed David as he left Jerusalem.
David is settling some accounts here, just before he died. He kept his word that he would not kill certain people, but justice was to be meted out. Be sure that no matter what happens, reaping will happen, commensurate with what you sow. Joab and Shimei were about to learn this truth. Sow mercy, and you will receive mercy. Sow evil, and it will come back to roost!