1 Kings 2:32-42

32 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 Ama'sa the son of Jether, commander of the army of Judah.
33 So shall their blood come back upon the head of Jo'ab 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."
34 Then Benai'ah the son of Jehoi'ada went up, and struck him down and killed him; and he was buried in his own house in the wilderness.
35 The king put Benai'ah the son of Jehoi'ada over the army in place of Jo'ab, and the king put Zadok the priest in the place of Abi'athar.
36 Then the king sent and summoned Shim'e-i, and said to him, "Build yourself a house in Jerusalem, and dwell there, and do not go forth from there to any place whatever.
37 For on the day you go forth, and cross the brook Kidron, know for certain that you shall die; your blood shall be upon your own head."
38 And Shim'e-i said to the king, "What you say is good; as my lord the king has said, so will your servant do." So Shim'e-i dwelt in Jerusalem many days.
39 But it happened at the end of three years that two of Shim'e-i's slaves ran away to Achish, son of Ma'acah, king of Gath. And when it was told Shim'e-i, "Behold, your slaves are in Gath,"
40 Shim'e-i arose and saddled an ass, and went to Gath to Achish, to seek his slaves; Shim'e-i went and brought his slaves from Gath.
41 And when Solomon was told that Shim'e-i had gone from Jerusalem to Gath and returned,
42 the king sent and summoned Shim'e-i, 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.'
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.