5 When the king got to Bahurim, a man appeared who had connections with Saul's family. His name was Shimei son of Gera. As he followed along he shouted insults 6 and threw rocks right and left at David and his company, servants and soldiers alike. 7 To the accompaniment of curses he shouted, "Get lost, get lost, you butcher, you hellhound! 8 God has paid you back for all your dirty work in the family of Saul and for stealing his kingdom. God has given the kingdom to your son Absalom. Look at you now - ruined! And good riddance, you pathetic old man!" 9 Abishai son of Zeruiah said, "This mangy dog can't insult my master the king this way - let me go over and cut off his head!" 10 But the king said, "Why are you sons of Zeruiah always interfering and getting in the way? If he's cursing, it's because God told him, 'Curse David.' So who dares raise questions?" 11 "Besides," continued David to Abishai and the rest of his servants, "my own son, my flesh and bone, is right now trying to kill me; compared to that this Benjaminite is small potatoes. Don't bother with him; let him curse; he's preaching God's word to me. 12 And who knows, maybe God will see the trouble I'm in today and exchange the curses for something good." 13 David and his men went on down the road, while Shimei followed along on the ridge of the hill alongside, cursing, throwing stones down on them, and kicking up dirt. 14 By the time they reached the Jordan River, David and all the men of the company were exhausted. There they rested and were revived.

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.