5 When King David came to Bahurim, a man of the family of the house of Saul came out whose name was Shimei son of Gera; he came out cursing. 6 He threw stones at David and at all the servants of King David; now all the people and all the warriors were on his right and on his left. 7 Shimei shouted while he cursed, "Out! Out! Murderer! Scoundrel! 8 The Lord has avenged on all of you the blood of the house of Saul, in whose place you have reigned; and the Lord has given the kingdom into the hand of your son Absalom. See, disaster has overtaken you; for you are a man of blood." 9 Then Abishai son of Zeruiah said to the king, "Why should this dead dog curse my lord the king? Let me go over and take off his head." 10 But the king said, "What have I to do with you, you sons of Zeruiah? If he is cursing because the Lord has said to him, "Curse David,' who then shall say, "Why have you done so?' " 11 David said to Abishai and to all his servants, "My own son seeks my life; how much more now may this Benjaminite! Let him alone, and let him curse; for the Lord has bidden him. 12 It may be that the Lord will look on my distress, and the Lord will repay me with good for this cursing of me today." 13 So David and his men went on the road, while Shimei went along on the hillside opposite him and cursed as he went, throwing stones and flinging dust at him. 14 The king and all the people who were with him arrived weary at the Jordan; and there he refreshed himself.

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

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.