14 And he went through all the tribes of Israel to Abel and Beth Maachah and all the Berites. So they were gathered together and also went after Sheba. 15 Then they came and besieged him in Abel of Beth Maachah; and they cast up a siege mound against the city, and it stood by the rampart. And all the people who were with Joab battered the wall to throw it down. 16 Then a wise woman cried out from the city, "Hear, Hear! Please say to Joab, 'Come nearby, that I may speak with you.' " 17 When he had come near to her, the woman said, "Are you Joab?" He answered, "I am." Then she said to him, "Hear the words of your maidservant." And he answered, "I am listening." 18 So she spoke, saying, "They used to talk in former times, saying, 'They shall surely seek guidance at Abel,' and so they would end disputes. 19 I am among the peaceable and faithful in Israel. You seek to destroy a city and a mother in Israel. Why would you swallow up the inheritance of the Lord?" 20 And Joab answered and said, "Far be it, far be it from me, that I should swallow up or destroy! 21 That is not so. But a man from the mountains of Ephraim, Sheba the son of Bichri by name, has raised his hand against the king, against David. Deliver him only, and I will depart from the city." So the woman said to Joab, "Watch, his head will be thrown to you over the wall." 22 Then the woman in her wisdom went to all the people. And they cut off the head of Sheba the son of Bichri, and threw it out to Joab. Then he blew a trumpet, and they withdrew from the city, every man to his tent. So Joab returned to the king at Jerusalem.

Matthew Henry's Commentary on 2 Samuel 20:14-22

Commentary on 2 Samuel 20:14-22

(Read 2 Samuel 20:14-22)

Justly is that place attacked, which dares to harbour a traitor; nor will the heart fare better which indulges rebellious lusts, that will not have Christ to reign over them. A discreet woman, by her prudent management, satisfied Joab, and yet saved the city. Wisdom is not confined to rank or sex; it consists not in deep knowledge; but in understanding how to act as matters arise, that troubles may be turned away and benefits secured. A great deal of mischief would be prevented, if contending parties would understand one another. Let both sides be undeceived. The single condition of peace is, the surrender of the traitor. It is so in God's dealing with the soul, when besieged by conviction and distress; sin is the traitor; the beloved lust is the rebel: part with that, cast away the transgression, and all shall be well. There is no peace on any other terms.