1 Kings 20:1 Now Ben-Hadad king of Aram mustered his entire army. Accompanied by thirty-two kings with their horses and chariots, he went up and besieged Samaria and attacked it. 2 He sent messengers into the city to Ahab king of Israel, saying, “This is what Ben-Hadad says: 3 ‘Your silver and gold are mine, and the best of your wives and children are mine.’”

4 The king of Israel answered, “Just as you say, my lord the king. I and all I have are yours.”

5 The messengers came again and said, “This is what Ben-Hadad says: ‘I sent to demand your silver and gold, your wives and your children. 6 But about this time tomorrow I am going to send my officials to search your palace and the houses of your officials. They will seize everything you value and carry it away.’”

7 The king of Israel summoned all the elders of the land and said to them, “See how this man is looking for trouble! When he sent for my wives and my children, my silver and my gold, I did not refuse him.”

8 The elders and the people all answered, “Don’t listen to him or agree to his demands.”

9 So he replied to Ben-Hadad’s messengers, “Tell my lord the king, ‘Your servant will do all you demanded the first time, but this demand I cannot meet.’” They left and took the answer back to Ben-Hadad.

10 Then Ben-Hadad sent another message to Ahab: “May the gods deal with me, be it ever so severely, if enough dust remains in Samaria to give each of my men a handful.”

11 The king of Israel answered, “Tell him: ‘One who puts on his armor should not boast like one who takes it off.’”

12 Ben-Hadad heard this message while he and the kings were drinking in their tents,[a] and he ordered his men: “Prepare to attack.” So they prepared to attack the city
.

a. 1 Kings 20:12 Or in Sukkoth; also in verse 16

I like that Boast. It makes a lot of sense.

This is from the blueletterbible.org site.

Ben-Hadad the King of Syria gathered all his forces together; thirty-two kings were with him: This was a formidable military attack against Israel. Though they were outwardly strong politically and militarily during the reign of Ahab, they were not strong enough to discourage such an attack.

Ahab's response to Ben-Hadad fit his general personality. He was a man concerned with the luxuries and comforts of living, and so he did not have the character to stand in the face of such a threat. Ahab surrendered unconditionally to Ben-Hadad.

It was wiser for Ahab to seek the counsel of the elders of the land before he surrendered to the Syrians. Now, in the brief time between the message of surrender and the actual abduction of his women and the plundering of his goods he sought counsel.

The elders of Israel rightly saw that such surrender to Ben-Hadad and the Syrians was the first step to a total loss of sovereignty for Israel. If they wanted to remain a kingdom at all, they had to resist this threat.

Ahab told Ben-Hadad that he would do most of what he requested, but not all. But to deny a tyrant on one point is to deny him on every point. Ahab could expect a harsh reaction.