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:45
King Solomon shall be blessed - He seems to think that, while such bad men remained unpunished, the nation could not prosper; that it was an act of justice which God required him to perform, in order to the establishment and perpetuity of his throne.
John Gill on 1 Kings 2:45
And King Solomon shall be blessed,.... With a long and peaceable reign, and large dominions, notwithstanding all the attempts to make him unhappy:
and the throne of David shall be established before the Lord for ever; the kingdom of David over Judah for a long time, in his natural line; and the kingdom of Israel, spiritual Israel, for ever in his son the Messiah; and that in the presence of the Lord, he observing, ordering, and succeeding all things to that purpose.