15 Then Hushai said to Zadok and Abiathar the priests, "Thus and so Ahithophel advised Absalom and the elders of Israel, and thus and so I have advised. 16 Now therefore, send quickly and tell David, saying, 'Do not spend this night in the plains of the wilderness, but speedily cross over, lest the king and all the people who are with him be swallowed up.' " 17 Now Jonathan and Ahimaaz stayed at En Rogel, for they dared not be seen coming into the city; so a female servant would come and tell them, and they would go and tell King David. 18 Nevertheless a lad saw them, and told Absalom. But both of them went away quickly and came to a man's house in Bahurim, who had a well in his court; and they went down into it. 19 Then the woman took and spread a covering over the well's mouth, and spread ground grain on it; and the thing was not known. 20 And when Absalom's servants came to the woman at the house, they said, "Where are Ahimaaz and Jonathan?" So the woman said to them, "They have gone over the water brook." And when they had searched and could not find them, they returned to Jerusalem. 21 Now it came to pass, after they had departed, that they came up out of the well and went and told King David, and said to David, "Arise and cross over the water quickly. For thus has Ahithophel advised against you."
22 So David and all the people who were with him arose and crossed over the Jordan. By morning light not one of them was left who had not gone over the Jordan.
Matthew Henry's Commentary on 2 Samuel 17:15-22
Commentary on 2 Samuel 17:1-21
(Read 2 Samuel 17:1-21)
Here was a wonderful effect of Divine Providence blinding Absalom's mind and influencing his heart, that he could not rest in Ahithophel's counsel, and that he should desire Hushai's advice. But there is no contending with that God who can arm a man against himself, and destroy him by his own mistakes and passions. Ahithophel's former counsel was followed, for God intended to correct David; but his latter counsel was not followed, for God meant not to destroy him. He can overrule all counsels. Whatever wisdom or help any man employs or affords, the success is from God alone, who will not let his people perish.
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