Absalom and the others liked Hushai's plan better than Ahithophel's plan. This was because the LORD had decided to keep Ahithophel's plan from working and to cause trouble for Absalom.
The king of Syria was furious when he found out what was happening. He called in his officers and asked, "Which one of you has been telling the king of Israel our plans?"
This is because God considers the wisdom of this world to be foolish. It is just as the Scriptures say, "God catches the wise when they try to outsmart him."