2 Samuel 16:10-13

16:10 But the king said, “What do we have in common, you sons of Zeruiah? If he curses because the Lord has said to him, ‘Curse David!’, who can say to him, ‘Why have you done this?’” 16:11 Then David said to Abishai and to all his servants, “My own son, my very own flesh and blood, is trying to take my life. So also now this Benjaminite! Leave him alone so that he can curse, for the Lord has spoken to him. 16:12 Perhaps the Lord will notice my affliction and this day grant me good in place of his curse.”

16:13 So David and his men went on their way. But Shimei kept going along the side of the hill opposite him, yelling curses as he threw stones and dirt at them.