32 The Lord will punish Joab for those murders, which he committed without my father David's knowledge. Joab killed two innocent men who were better men than he: Abner, commander of the army of Israel, and Amasa, commander of the army of Judah.
33 The punishment for their murders will fall on Joab and on his descendants for ever. But the Lord will always give success to David's descendants who sit on his throne.”
34 So Benaiah went to the Tent of the Lord's presence and killed Joab, and he was buried at his home in the open country.
35 The king made Benaiah commander of the army in Joab's place and put Zadok the priest in Abiathar's place.
36 Then the king sent for Shimei and said to him, “Build a house for yourself here in Jerusalem. Live in it and don't leave the city.
37 If you ever leave and go beyond the brook of Kidron, you will certainly die — and you yourself will be to blame.”
38 “Very well, Your Majesty,” Shimei answered. “I will do what you say.” So he lived in Jerusalem a long time.