2 Samuel 16:4-14

4 Then said the king to Tziva, Behold, all that pertains to Mefivoshet is yours. Tziva said, I do obeisance; let me find favor in your sight, my lord, O king.
5 When king David came to Bachurim, behold, a man of the family of the house of Sha'ul came out, whose name was Shim`i, the son of Gera. He came out, and cursed still as he came.
6 He 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 Thus said Shim`i when he cursed, Be gone, be gone, you man of blood, and base fellow:
8 The LORD has returned on you all the blood of the house of Sha'ul, in whose place you have reigned; and the LORD has delivered the kingdom into the hand of Avshalom your son; and, behold, you are [taken] in your own mischief, because you are a man of blood.
9 Then said Avishai the son of Tzeru'yah to the king, "Why should this dead dog curse my lord the king? Please let me go over and take off his head."
10 The king said, What have I to do with you, you sons of Tzeru'yah? Because he curses, and because the LORD has said to him, Curse David; who then shall say, Why have you done so?
11 David said to Avishai, and to all his servants, Behold, my son, who came forth from my bowels, seeks my life: how much more [may] this Binyamini now [do it]? let him alone, and let him curse; for the LORD has invited him.
12 It may be that the LORD will look on the wrong done to me, and that the LORD will requite me good for [his] cursing of me this day.
13 So David and his men went by the way; and Shim`i went along on the hill-side over against him, and cursed as he went, and threw stones at him, and cast dust.
14 The king, and all the people who were with him, came weary; and he refreshed himself there.
The Hebrew Names Version is in the public domain.