15 Hushai told Zadok and Abiathar, the priests, what Ahithophel had said to Absalom and the elders of Israel and what he himself had advised instead. 16 "Quick!" he told them. "Find David and urge him not to stay at the shallows of the Jordan River tonight. He must go across at once into the wilderness beyond. Otherwise he will die and his entire army with him." 17 Jonathan and Ahimaaz had been staying at En-rogel so as not to be seen entering and leaving the city. Arrangements had been made for a servant girl to bring them the message they were to take to King David. 18 But a boy spotted them at En-rogel, and he told Absalom about it. So they quickly escaped to Bahurim, where a man hid them down inside a well in his courtyard. 19 The man's wife put a cloth over the top of the well and scattered grain on it to dry in the sun; so no one suspected they were there. 20 When Absalom's men arrived, they asked her, "Have you seen Ahimaaz and Jonathan?" The woman replied, "They were here, but they crossed over the brook." Absalom's men looked for them without success and returned to Jerusalem. 21 Then the two men crawled out of the well and hurried on to King David. "Quick!" they told him, "cross the Jordan tonight!" And they told him how Ahithophel had advised that he be captured and killed.
22 So David and all the people with him went across the Jordan River during the night, and they were all on the other bank before dawn.
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