22 Then David arose, and all the people that were with him, and they passed over the Jordan; by the morning light there was not one of them missing that had not gone over the Jordan. 23 And when Ahithophel saw that his counsel was not followed, he saddled his ass, and arose and went to his house, to his city, and gave charge to his household, and hanged himself, and he died; and he was buried in the sepulchre of his father. 24 And David came to Mahanaim. And Absalom passed over the Jordan, he and all the men of Israel with him. 25 And Absalom set Amasa over the host instead of Joab; which Amasa was the son of a man whose name was Jithra the Israelite, that went in to Abigail the daughter of Nahash, sister to Zeruiah, Joab's mother. 26 And Israel and Absalom encamped in the land of Gilead. 27 And as soon as David came to Mahanaim, Shobi the son of Nahash of Rabbah of the children of Ammon, and Machir the son of Ammiel of Lo-debar, and Barzillai the Gileadite of Rogelim, 28 brought beds, and basons, and earthen vessels, and wheat, and barley, and flour, and parched [corn], and beans, and lentils, and parched [pulse], 29 and honey, and cream, and sheep, and cheese of kine to David, and to the people that were with him, to eat; for they said, The people is 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