Matthew Henry on 1 Kings 2:35–end
Here is, I. The preferment of Benaiah and Zadok, two faithful friends to Solomon and his government, Kg1 2:35. Joab being put to death, Benaiah was advanced to be general of the forces in his room, and, Abiathar being deposed, Zadok was made high priest in his room, and therein was fulfilled the word of God, when he threatened to cut off the house of Eli (Sa1 2:35), I will raise me up a faithful priest, and will build him a sure house. Though sacred offices may be disgraced, they shall not be destroyed, by the mal-administration of those that are entrusted with them, nor shall God's work ever stand still for want of hands to carry it on. No wonder that he who was a king so immediately of God…
Read the whole note in the consoleJamieson-Fausset-Brown on 1 Kings 2:36
the king sent and called for Shimei--He was probably residing at Bahurim, his native place. But, as he was a suspicious character, Solomon condemned him henceforth to live in Jerusalem, on the penalty of death, for going without the gates. He submitted to this confinement for three years, when, violating his oath, he was arrested and put to death by Solomon for perjury, aggravated by his former crime of high treason against David [Kg1 2:42-44].
Adam Clarke on 1 Kings 2:40
And Shimei - went to Gath - It is astonishing that with his eyes wide open he would thus run into the jaws of death.
John Gill on 1 Kings 2:41
And it was told Solomon,.... By the spies he set to watch and observe his motions, or by some others who had seen him go out and return, and knew that it was contrary to the king's orders:
that Shimei had gone from Jerusalem to Gath, and was come again; which was thirty four miles from Jerusalem (h); whereas his utmost bounds, whither he might go, was the brook Kidron, about half a mile from it.
(h) Bunting's Travels, &c. p. 124.
Keil & Delitzsch on 1 Kings 2:12–end