The king answered, "Do as he said. Kill him, and bury him. You can remove the innocent blood--the blood which Joab shed--from me and my father's family.
The LORD will repay him for the slaughter he caused. Joab killed two honorable men who were better than he was. He used his sword to kill Abner (who was the son of Ner and the commander of Israel's army) and Amasa (who was the son of Jether and the commander of Judah's army). Joab did this without my father's knowledge.
The responsibility for their blood will fall on Joab and his descendants forever. But may David, his descendants, family, and throne always receive peace from the LORD."
Then Benaiah, son of Jehoiada, went and attacked Joab, killed him, and buried him at his home in the desert.
The king then appointed Benaiah, son of Jehoiada, to replace Joab as commander of the army. King Solomon also replaced Abiathar with the priest Zadok.
The king summoned Shimei and said to him, "Build a house for yourself in Jerusalem, and stay there. Don't leave [the city] to go anywhere else.
But the day you leave and cross the brook in the Kidron Valley, you can be certain that you will die. You will be responsible for your own death."
"Very well," Shimei answered. "I'll do just what Your Majesty said." So Shimei stayed in Jerusalem for a long time.
But after three years, two of Shimei's slaves fled to Gath's King Achish, son of Maacah. Shimei was told that his slaves were in Gath,
so he saddled his donkey and went to Achish in Gath to search for his slaves. Shimei went to Gath and got his slaves.
After Solomon heard that Shimei had gone from Jerusalem to Gath and back,