22 Then David arose, and all the people who were with him, and they passed over the Jordan. By the morning light there lacked not one of them who had not gone over the Jordan. 23 When Ahithophel saw that his counsel was not followed, he saddled his donkey, and arose, and got him home, to his city, and 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. Absalom passed over the Jordan, he and all the men of Israel with him. 25 Absalom set Amasa over the army instead of Joab. Now Amasa was the son of a man, whose name was Ithra the Israelite, who went in to Abigail the daughter of Nahash, sister to Zeruiah, Joab’s mother. 26 Israel and Absalom encamped in the land of Gilead. 27 It happened, when David was come to Mahanaim, that Shobi the son of Nahash of Rabbah of the children of Ammon, and Machir the son of Ammiel of Lodebar, and Barzillai the Gileadite of Rogelim, 28 brought beds, and basins, and earthen vessels, and wheat, and barley, and meal, and parched grain, and beans, and lentils, and parched pulse, 29 and honey, and butter, and sheep, and cheese of the herd, for David, and for the people who were with him, to eat: for they said, “The people are hungry, and weary, and thirsty, in the wilderness.”

Matthew Henry's Commentary on 2 Samuel 17:22-29

Commentary on 2 Samuel 17:22-29

(Read 2 Samuel 17:22-29)

Ahithophel hanged himself for vexation that his counsel was not followed. That will break a proud man's heart which will not break a humble man's sleep. He thought himself in danger, concluding, that, because his counsel was not followed, Absalom's cause would fail; and to prevent a possible public execution, he does justice upon himself. Thus the breath is stopped, and the head laid low, from which nothing could be expected but mischief. Absalom chased his father. But observe how God sometimes makes up to his people that comfort from strangers, which they are disappointed of in their own families. Our King needs not our help; but he assures us, that what we do for the least of his brethren, who are sick, poor, and destitute, shall be accepted and recompensed as if done to himself