and keep the charge of the LORD your God, walking in his ways and keeping his statutes, his commandments, his ordinances, and his testimonies, as it is written in the law of Moses, that you may prosper in all that you do and wherever you turn;
that the LORD may establish his word which he spoke concerning me, saying, `If your sons take heed to their way, to walk before me in faithfulness with all their heart and with all their soul, there shall not fail you a man on the throne of Israel.'
"Moreover you know also what Joab the son of Zeruiah did to me, how he dealt with the two commanders of the armies of Israel, Abner the son of Ner, and Amasa the son of Jether, whom he murdered, avenging in time of peace blood which had been shed in war, and putting innocent blood upon the girdle about my loins, and upon the sandals on my feet.
But deal loyally with the sons of Barzillai the Gileadite, and let them be among those who eat at your table; for with such loyalty they met me when I fled from Absalom your brother.
And there is also with you Shimei the son of Gera, the Benjaminite from Bahurim, who cursed me with a grievous curse on the day when I went to Mahanaim; but when he came down to meet me at the Jordan, I swore to him by the LORD, saying, `I will not put you to death with the sword.'
Now therefore hold him not guiltless, for you are a wise man; you will know what you ought to do to him, and you shall bring his gray head down with blood to Sheol."
He said, "You know that the kingdom was mine, and that all Israel fully expected me to reign; however the kingdom has turned about and become my brother's, for it was his from the LORD.
So Bathsheba went to King Solomon, to speak to him on behalf of Adonijah. And the king rose to meet her, and bowed down to her; then he sat on his throne, and had a seat brought for the king's mother; and she sat on his right.
Then she said, "I have one small request to make of you; do not refuse me." And the king said to her, "Make your request, my mother; for I will not refuse you."
King Solomon answered his mother, "And why do you ask Abishag the Shunammite for Adonijah? Ask for him the kingdom also; for he is my elder brother, and on his side are Abiathar the priest and Joab the son of Zeruiah."
Now therefore as the LORD lives, who has established me, and placed me on the throne of David my father, and who has made me a house, as he promised, Adonijah shall be put to death this day."
And to Abiathar the priest the king said, "Go to Anathoth, to your estate; for you deserve death. But I will not at this time put you to death, because you bore the ark of the Lord GOD before David my father, and because you shared in all the affliction of my father."
So Solomon expelled Abiathar from being priest to the LORD, thus fulfilling the word of the LORD which he had spoken concerning the house of Eli in Shiloh.
When the news came to Joab -- for Joab had supported Adonijah although he had not supported Absalom -- Joab fled to the tent of the LORD and caught hold of the horns of the altar.
And when it was told King Solomon, "Joab has fled to the tent of the LORD, and behold, he is beside the altar," Solomon sent Benaiah the son of Jehoiada, saying, "Go, strike him down."
So Benaiah came to the tent of the LORD, and said to him, "The king commands, `Come forth.'" But he said, "No, I will die here." Then Benaiah brought the king word again, saying, "Thus said Joab, and thus he answered me."
The king replied to him, "Do as he has said, strike him down and bury him; and thus take away from me and from my father's house the guilt for the blood which Joab shed without cause.
The LORD will bring back his bloody deeds upon his own head, because, without the knowledge of my father David, he attacked and slew with the sword two men more righteous and better than himself, Abner the son of Ner, commander of the army of Israel, and Amasa the son of Jether, commander of the army of Judah.
So shall their blood come back upon the head of Joab and upon the head of his descendants for ever; but to David, and to his descendants, and to his house, and to his throne, there shall be peace from the LORD for evermore."
Then the king sent and summoned Shimei, and said to him, "Build yourself a house in Jerusalem, and dwell there, and do not go forth from there to any place whatever.
But it happened at the end of three years that two of Shimei's slaves ran away to Achish, son of Maacah, king of Gath. And when it was told Shimei, "Behold, your slaves are in Gath,"
the king sent and summoned Shimei, and said to him, "Did I not make you swear by the LORD, and solemnly admonish you, saying, `Know for certain that on the day you go forth and go to any place whatever, you shall die'? And you said to me, `What you say is good; I obey.'
The king also said to Shimei, "You know in your own heart all the evil that you did to David my father; so the LORD will bring back your evil upon your own head.
Then the king commanded Benaiah the son of Jehoiada; and he went out and struck him down, and he died. So the kingdom was established in the hand of Solomon.