5 And when king David came to Bahurim, behold, there came out from thence a man of the family of the house of Saul, whose name was Shimei, the son of Gera: he came forth, and cursed, 6 and cast stones at David, and at all the servants of king David; and all the people and all the mighty men were on his right hand and on his left. 7 And thus said Shimei as he cursed: Away, away, thou man of blood and man of Belial! 8 Jehovah has returned upon thee all the blood of the house of Saul, in whose stead thou hast reigned; and Jehovah has given the kingdom into the hand of Absalom thy son; and behold, thou art [taken] in thine own evil, for thou art a man of blood. 9 And Abishai the son of Zeruiah said to the king, Why should this dead dog curse my lord the king? let me go over, I pray thee, and take off his head. 10 And the king said, What have I to do with you, ye sons of Zeruiah? so let him curse, for Jehovah has said to him, Curse David! Who shall then say, Why dost thou so? 11 And David said to Abishai, and to all his servants, Behold, my son, who came forth of my bowels, seeks my life: how much more now a Benjaminite? let him alone and let him curse; for Jehovah has bidden him.

Matthew Henry's Commentary on 2 Samuel 16:5-11

Commentary on 2 Samuel 16:5-14

(Read 2 Samuel 16:5-14)

David bore Shimei's curses much better than Ziba's flatteries; by these he was brought to pass a wrong judgment on another, by those to pass a right judgment on himself: the world's smiles are more dangerous than its frowns. Once and again David spared Saul's life, while Saul sought his. But innocence is no defence against malice and falsehood; nor are we to think it strange, if we are charged with that which we have been most careful to keep ourselves from. It is well for us, that men are not to be our judges, but He whose judgment is according to truth. See how patient David was under this abuse. Let this remind us of Christ, who prayed for those who reviled and crucified him. A humble spirit will turn reproaches into reproofs, and get good from them, instead of being provoked by them. David the hand of God in it, and comforts himself that God would bring good out of his affliction. We may depend upon God to repay, not only our services, but our sufferings.