2 Samuel 16-17 (ESV)
David and Ziba
16:1 When David had passed a little beyond the summit, Ziba the servant of Mephibosheth met him, with a couple of donkeys saddled, bearing two hundred loaves of bread, a hundred bunches of raisins, a hundred of summer fruits, and a skin of wine. 2 And the king said to Ziba, “Why have you brought these?” Ziba answered, “The donkeys are for the king’s household to ride on, the bread and summer fruit for the young men to eat, and the wine for those who faint in the wilderness to drink.” 3 And the king said, “And where is your master’s son?” Ziba said to the king, “Behold, he remains in Jerusalem, for he said, ‘Today the house of Israel will give me back the kingdom of my father.’” 4 Then the king said to Ziba, “Behold, all that belonged to Mephibosheth is now yours.” And Ziba said, “I pay homage; let me ever find favor in your sight, my lord the king.”
Shimei Curses David
5 When King David came to Bahurim, there came out a man of the family of the house of Saul, whose name was Shimei, the son of Gera, and as he came he cursed continually. 6 And he threw 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 And Shimei said as he cursed, “Get out, get out, you man of blood, you worthless man! 8 The Lord has avenged on you all the blood of the house of Saul, in whose place you have reigned, and the Lord has given the kingdom into the hand of your son Absalom. See, your evil is on you, for you are a man of blood.”
9 Then Abishai the son of Zeruiah said to the king, “Why should this dead dog curse my lord the king? Let me go over and take off his head.” 10 But the king said, “What have I to do with you, you sons of Zeruiah? If he is cursing because the Lord has said to him, ‘Curse David,’ who then shall say, ‘Why have you done so?’” 11 And David said to Abishai and to all his servants, “Behold, my own son seeks my life; how much more now may this Benjaminite! Leave him alone, and let him curse, for the Lord has told him to. 12 It may be that the Lord will look on the wrong done to me,  and that the Lord will repay me with good for his cursing today.” 13 So David and his men went on the road, while Shimei went along on the hillside opposite him and cursed as he went and threw stones at him and flung dust. 14 And the king, and all the people who were with him, arrived weary at the Jordan.  And there he refreshed himself.
Absalom Enters Jerusalem
15 Now Absalom and all the people, the men of Israel, came to Jerusalem, and Ahithophel with him. 16 And when Hushai the Archite, David’s friend, came to Absalom, Hushai said to Absalom, “Long live the king! Long live the king!” 17 And Absalom said to Hushai, “Is this your loyalty to your friend? Why did you not go with your friend?” 18 And Hushai said to Absalom, “No, for whom the Lord and this people and all the men of Israel have chosen, his I will be, and with him I will remain. 19 And again, whom should I serve? Should it not be his son? As I have served your father, so I will serve you.”
20 Then Absalom said to Ahithophel, “Give your counsel. What shall we do?” 21 Ahithophel said to Absalom, “Go in to your father’s concubines, whom he has left to keep the house, and all Israel will hear that you have made yourself a stench to your father, and the hands of all who are with you will be strengthened.” 22 So they pitched a tent for Absalom on the roof. And Absalom went in to his father’s concubines in the sight of all Israel. 23 Now in those days the counsel that Ahithophel gave was as if one consulted the word of God; so was all the counsel of Ahithophel esteemed, both by David and by Absalom.
Hushai Saves David
17:1 Moreover, Ahithophel said to Absalom, “Let me choose twelve thousand men, and I will arise and pursue David tonight. 2 I will come upon him while he is weary and discouraged and throw him into a panic, and all the people who are with him will flee. I will strike down only the king, 3 and I will bring all the people back to you as a bride comes home to her husband. You seek the life of only one man,  and all the people will be at peace.” 4 And the advice seemed right in the eyes of Absalom and all the elders of Israel.
5 Then Absalom said, “Call Hushai the Archite also, and let us hear what he has to say.” 6 And when Hushai came to Absalom, Absalom said to him, “Thus has Ahithophel spoken; shall we do as he says? If not, you speak.” 7 Then Hushai said to Absalom, “This time the counsel that Ahithophel has given is not good.” 8 Hushai said, “You know that your father and his men are mighty men, and that they are enraged,  like a bear robbed of her cubs in the field. Besides, your father is expert in war; he will not spend the night with the people. 9 Behold, even now he has hidden himself in one of the pits or in some other place. And as soon as some of the people fall  at the first attack, whoever hears it will say, ‘There has been a slaughter among the people who follow Absalom.’ 10 Then even the valiant man, whose heart is like the heart of a lion, will utterly melt with fear, for all Israel knows that your father is a mighty man, and that those who are with him are valiant men. 11 But my counsel is that all Israel be gathered to you, from Dan to Beersheba, as the sand by the sea for multitude, and that you go to battle in person. 12 So we shall come upon him in some place where he is to be found, and we shall light upon him as the dew falls on the ground, and of him and all the men with him not one will be left. 13 If he withdraws into a city, then all Israel will bring ropes to that city, and we shall drag it into the valley, until not even a pebble is to be found there.” 14 And Absalom and all the men of Israel said, “The counsel of Hushai the Archite is better than the counsel of Ahithophel.” For the Lord had ordained  to defeat the good counsel of Ahithophel, so that the Lord might bring harm upon Absalom.
15 Then Hushai said to Zadok and Abiathar the priests, “Thus and so did Ahithophel counsel Absalom and the elders of Israel, and thus and so have I counseled. 16 Now therefore send quickly and tell David, ‘Do not stay tonight at the fords of the wilderness, but by all means pass over, lest the king and all the people who are with him be swallowed up.’” 17 Now Jonathan and Ahimaaz were waiting at En-rogel. A female servant was to go and tell them, and they were to go and tell King David, for they were not to be seen entering the city. 18 But a young man saw them and told Absalom. So both of them went away quickly and came to the house of a man at Bahurim, who had a well in his courtyard. And they went down into it. 19 And the woman took and spread a covering over the well’s mouth and scattered grain on it, and nothing was known of it. 20 When Absalom’s servants came to the woman at the house, they said, “Where are Ahimaaz and Jonathan?” And the woman said to them, “They have gone over the brook  of water.” And when they had sought and could not find them, they returned to Jerusalem.
21 After they had gone, the men came up out of the well, and went and told King David. They said to David, “Arise, and go quickly over the water, for thus and so has Ahithophel counseled against you.” 22 Then David arose, and all the people who were with him, and they crossed the Jordan. By daybreak not one was left who had not crossed the Jordan.
23 When Ahithophel saw that his counsel was not followed, he saddled his donkey and went off home to his own city. He set his house in order and hanged himself, and he died and was buried in the tomb of his father.
24 Then David came to Mahanaim. And Absalom crossed the Jordan with all the men of Israel. 25 Now Absalom had set Amasa over the army instead of Joab. Amasa was the son of a man named Ithra the Ishmaelite,  who had married Abigal the daughter of Nahash, sister of Zeruiah, Joab’s mother. 26 And Israel and Absalom encamped in the land of Gilead.
27 When David came to Mahanaim, Shobi the son of Nahash from Rabbah of the Ammonites, and Machir the son of Ammiel from Lo-debar, and Barzillai the Gileadite from Rogelim, 28 brought beds, basins, and earthen vessels, wheat, barley, flour, parched grain, beans and lentils,  29 honey and curds and sheep and cheese from the herd, for David and the people with him to eat, for they said, “The people are hungry and weary and thirsty in the wilderness.”