5 When King David came to Bahu'rim, there came out a man of the family of the house of Saul, whose name was Shim'e-i, the son of Gera; and as he came he cursed continually. 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 And Shim'e-i said as he cursed, "Begone, begone, you man of blood, you worthless fellow! 8 The Lord has avenged upon you all 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 Ab'salom. See, your ruin is on you; for you are a man of blood." 9 Then Abi'shai the son of Zeru'iah 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 Zeru'iah? If he is cursing because the Lord has said to him, 'Curse David,' who then shall say, 'Why have you done so?'" 11 And David said to Abi'shai and to all his servants, "Behold, 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.
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.