The LORD will repay him for the blood he shed, because without my father David knowing it he attacked two men and killed them with the sword. Both of them—Abner son of Ner, commander of Israel’s army, and Amasa son of Jether, commander of Judah’s army—were better men and more upright than he.
May the guilt of their blood rest on the head of Joab and his descendants forever. But on David and his descendants, his house and his throne, may there be the LORD’s peace forever.”
So Benaiah son of Jehoiada went up and struck down Joab and killed him, and he was buried at his home out in the country.
The king put Benaiah son of Jehoiada over the army in Joab’s position and replaced Abiathar with Zadok the priest.
Then the king sent for Shimei and said to him, “Build yourself a house in Jerusalem and live there, but do not go anywhere else.
The day you leave and cross the Kidron Valley, you can be sure you will die; your blood will be on your own head.”
Shimei answered the king, “What you say is good. Your servant will do as my lord the king has said.” And Shimei stayed in Jerusalem for a long time.
But three years later, two of Shimei’s slaves ran off to Achish son of Maakah, king of Gath, and Shimei was told, “Your slaves are in Gath.”
At this, he saddled his donkey and went to Achish at Gath in search of his slaves. So Shimei went away and brought the slaves back from Gath.
When Solomon was told that Shimei had gone from Jerusalem to Gath and had returned,
the king summoned Shimei and said to him, “Did I not make you swear by the LORD and warn you, ‘On the day you leave to go anywhere else, you can be sure you will die’? At that time you said to me, ‘What you say is good. I will obey.’
Why then did you not keep your oath to the LORD and obey the command I gave you?”
The king also said to Shimei, “You know in your heart all the wrong you did to my father David. Now the LORD will repay you for your wrongdoing.
But King Solomon will be blessed, and David’s throne will remain secure before the LORD forever.”
Then the king gave the order to Benaiah son of Jehoiada, and he went out and struck Shimei down and he died. The kingdom was now established in Solomon’s hands.