Keep the mandate of the LORD, your God, following his ways and observing his statutes, commands, ordinances, and decrees as they are written in the law of Moses, that you may succeed in whatever you do, wherever you turn,
and the LORD may fulfill the promise he made on my behalf when he said, 'If your sons so conduct themselves that they remain faithful to me with their whole heart and with their whole soul, you shall always have someone of your line on the throne of Israel.'
You yourself know what Joab, son of Zeruiah, did to me when he slew the two generals of Israel's armies, Abner, son of Ner, and Amasa, son of Jether. He took revenge for the blood of war in a time of peace, and put bloodshed without provocation on the belt about my waist and the sandal on my foot.
"But be kind to the sons of Barzillai the Gileadite, and have them eat at your table. For they received me kindly when I was fleeing your brother Absalom.
"You also have with you Shimei, son of Gera, the Benjaminite of Bahurim, who cursed me balefully when I was going to Mahanaim. Because he came down to meet me at the Jordan, I swore to him by the LORD that I would not put him to the sword.
So he said: "You know that the kingdom was mine, and all Israel expected me to be king. But the kingdom escaped me and became my brother's, for the LORD gave it to him.
Then Bathsheba went to King Solomon to speak to him for Adonijah, and the king stood up to meet her and paid her homage. Then he sat down upon his throne, and a throne was provided for the king's mother, who sat at his right.
"And why do you ask Abishag the Shunamite for Adonijah?" King Solomon answered his mother. "Ask the kingdom for him as well, for he is my elder brother and has with him Abiathar the priest and Joab, son of Zeruiah."
And now, as the LORD lives, who has seated me firmly on the throne of my father David and made of me a dynasty as he promised, this day shall Adonijah be put to death."
The king said to Abiathar the priest: "Go to your land in Anathoth. Though you deserve to die, I will not put you to death this time, because you carried the ark of the Lord GOD before my father David and shared in all the hardships my father endured."
So Solomon deposed Abiathar from his office of priest of the LORD, thus fulfilling the prophecy which the LORD had made in Shiloh about the house of Eli.
King Solomon was told that Joab had fled to the tent of the LORD and was at the altar. He sent Benaiah, son of Jehoiada, with the order, "Go, strike him down."
Benaiah went to the tent of the LORD and said to him, "The king says, 'Come out.'" But he answered, "No! I will die here." Benaiah reported to the king, "This is what Joab said to me in reply."
The king answered him: "Do as he has said, Strike him down and bury him, and you will remove from me and from my family the blood which Joab shed without provocation.
The LORD will hold him responsible for his own blood, because he struck down two men better and more just than himself, and slew them with the sword without my father David's knowledge: Abner, son of Ner, general of Israel's army, and Amasa, son of Jether, general of Judah's army.
Joab and his descendants shall be responsible forever for their blood. But there shall be the peace of the LORD forever for David, and his descendants, and his house, and his throne."
But three years later, two of Shimei's servants ran away to Achish, son of Maacah, king of Gath, and Shimei was informed that his servants were in Gath.
the king summoned Shimei and said to him: "Did I not have you swear by the LORD to your clear understanding of my warning that, if you left and went anywhere else, you should die without fail? And you answered, 'I accept and obey.'