5 Now when King David came to Bahurim, there was a man from the family of the house of Saul, whose name was Shimei the son of Gera, coming from there. He came out, cursing continuously as he came. 6 And he threw 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 Also Shimei said thus when he cursed: "Come out! Come out! You bloodthirsty man, you rogue! 8 The Lord has brought upon you all the blood of the house of Saul, in whose place you have reigned; and the Lord has delivered the kingdom into the hand of Absalom your son. So now you are caught in your own evil, because you are a bloodthirsty man!" 9 Then Abishai the son of Zeruiah said to the king, "Why should this dead dog curse my lord the king? Please, 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? So let him curse, because the Lord has said to him, 'Curse David.' Who then shall say, 'Why have you done so?' " 11 And David said to Abishai and all his servants, "See how my son who came from my own body seeks my life. How much more now may this Benjamite? Let him alone, and let him curse; for so the Lord has ordered him. 12 It may be that the Lord will look on my affliction, and that the Lord will repay me with good for his cursing this day." 13 And as David and his men went along the road, Shimei went along the hillside opposite him and cursed as he went, threw stones at him and kicked up dust. 14 Now the king and all the people who were with him became weary; so they refreshed themselves there.

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.