15 Then Hushai told the priests Zadok and Abiathar, "Ahithophel advised Absalom and the elders of Israel thus and thus, and I advised them thus and thus. 16 Now send this message as quickly as possible to David: 'Don't spend the night on this side of the river; cross immediately or the king and everyone with him will be swallowed up alive.'" 17 Jonathan and Ahimaaz were waiting around at En Rogel. A servant girl would come and give them messages and then they would go and tell King David, for it wasn't safe to be seen coming into the city. 18 But a soldier spotted them and told Absalom, so the two of them got out of there fast and went to a man's house in Bahurim. He had a well in his yard and they climbed into it. 19 The wife took a rug and covered the well, then spread grain on it so no one would notice anything out of the ordinary. 20 Shortly, Absalom's servants came to the woman's house and asked her, "Have you seen Ahimaaz and Jonathan?" The woman said, "They were headed toward the river." They looked but didn't find them, and then went back to Jerusalem. 21 When the coast was clear, Ahimaaz and Jonathan climbed out of the well and went on to make their report to King David, "Get up and cross the river quickly; Ahithophel has given counsel against you!"

Matthew Henry's Commentary on 2 Samuel 17:15-21

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.