5 As King David came to Bahurim, a man came out of the village cursing them. It was Shimei son of Gera, from the same clan as Saul's family. 6 He threw stones at the king and the king's officers and all the mighty warriors who surrounded him. 7 "Get out of here, you murderer, you scoundrel!" he shouted at David. 8 "The Lord is paying you back for all the bloodshed in Saul's clan. You stole his throne, and now the Lord has given it to your son Absalom. At last you will taste some of your own medicine, for you are a murderer!" 9 "Why should this dead dog curse my lord the king?" Abishai son of Zeruiah demanded. "Let me go over and cut off his head!" 10 "No!" the king said. "Who asked your opinion, you sons of Zeruiah! If the Lord has told him to curse me, who are you to stop him?" 11 Then David said to Abishai and to all his servants, "My own son is trying to kill me. Doesn't this relative of Saul have even more reason to do so? Leave him alone and let him curse, for the Lord has told him to do it. 12 And perhaps the Lord will see that I am being wronged and will bless me because of these curses today." 13 So David and his men continued down the road, and Shimei kept pace with them on a nearby hillside, cursing and throwing stones and dirt at David. 14 The king and all who were with him grew weary along the way, so they rested when they reached the Jordan River.

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.