1 Kings 2:36

Overview - 1 Kings 2
David, having given a charge to Solomon,
of religiousness;
of Joab;
of Barzillai;
of Shimei;
10 dies.
12 Solomon succeeds.
13 Adonijah, moving Bath-sheba to sue unto Solomon for Abishag, is put to death.
26 Abiathar, having his life given him, is deprived of the priesthood.
28 Joab fleeing to the horns of the altar, is there slain.
35 Benaiah is put in Joab's room, and Zadok in Abiathar's.
36 Shimei, confined to Jerusalem, by occasion of going thence to Gath, is put to death.
Treasury of Scripture Knowledge

1 Kings 2:36  (King James Version)
And the king sent and called for Shimei, and said unto him, Build thee an house in Jerusalem, and dwell there, and go not forth thence any whither.

1 Kings 2:8 1 Kings 2:9 ; 2 Samuel 16:5-9 ; Proverbs 20:8 Proverbs 20:26

No doubt Solomon suspected that Shimei's influence would be dangerous upon his own estate and among his numerous dependents in different parts of the land; and therefore he proposed to him, as the condition of his indemnity for former crimes, that he should live in Jerusalem under his eye, and by no means remove thence. These terms Shimei readily agreed to, and solemnly swore to observe them; and for three years he lived unmolested and in affluence. But growing secure, in contempt of Solomon's authority and of the oath of God, upon an unnecessary business he took a journey, which according to his own engagement forfeited his life. Thus the Lord left him to be infatuated, that due punishment might be inflicted upon him; in order that every ringleader of opposition to Solomon's kingdom might be crushed, and others be intimidated by their examples. Solomon's throne by the death of this man was established in peace, and became a type of the Redeemer's kingdom of peace and righteousness
1:53 2 Samuel 14:24 2 Samuel 14:28