15 Then Hushai said to Zadok and Abi'athar the priests, "Thus and so did Ahith'ophel counsel Ab'salom and the elders of Israel; and thus and so have I counseled. 16 Now therefore send quickly and tell David, 'Do not lodge tonight at the fords of the wilderness, but by all means pass over; lest the king and all the people who are with him be swallowed up.'" 17 Now Jonathan and Ahim'a-az were waiting at En-ro'gel; a maidservant used to go and tell them, and they would go and tell King David; for they must not be seen entering the city.

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

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.