2 Samuel 16:5-14 (ESV)
Shimei Curses David
5When King David came toBahurim, there came out a man of the family of the house of Saul, whose name wasShimei, the son of Gera, and as he camehe cursed continually.6And 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.7And Shimei said as hecursed, Get out, get out, you man of blood, you worthless man!8TheLordhas avenged on you allthe blood of the house of Saul, in whose place you have reigned, and theLordhas given the kingdom into the hand of your son Absalom. See, your evil is on you, for you are a man of blood.
9Then Abishai the son of Zeruiah said to the king, Why should thisdead dogcurse my lord the king? Let me go over and take off his head.10But the king said,What have I to do with you,you sons of Zeruiah? If he is cursing because theLordhas said to him, Curse David, who then shall say, Why have you done so?11And David said to Abishai and to all his servants, Behold,my own son seeks my life; how much more now may this Benjaminite! Leave him alone, and let him curse, for theLordhas told him to.12It may be that theLordwill look on the wrong done to me,and that theLordwill repay me with good for his cursing today.13So David and his men went on the road, while Shimei went along on the hillside opposite him andcursed as he went and threw stones at him and flung dust.14And the king, and all the people who were with him,arrived weary at the Jordan.And there he refreshed himself.