1 Kings 20:29-34 NIV

29 For seven days they camped opposite each other, and on the seventh day the battle was joined. The Israelites inflicted a hundred thousand casualties on the Aramean foot soldiers in one day.
30 The rest of them escaped to the city of Aphek,1 where the wall collapsed2 on twenty-seven thousand of them. And Ben-Hadad fled to the city and hid3 in an inner room.

References for 1 Kings 20:30

31 His officials said to him, "Look, we have heard that the kings of the house of Israel are merciful.4 Let us go to the king of Israel with sackcloth5 around our waists and ropes around our heads. Perhaps he will spare your life."

References for 1 Kings 20:31

32 Wearing sackcloth around their waists and ropes around their heads, they went to the king of Israel and said, "Your servant Ben-Hadad says: 'Please let me live.' " The king answered, "Is he still alive? He is my brother."
33 The men took this as a good sign and were quick to pick up his word. "Yes, your brother Ben-Hadad!" they said. "Go and get him," the king said. When Ben-Hadad came out, Ahab had him come up into his chariot.
34 "I will return the cities6 my father took from your father," Ben-Hadad7 offered. "You may set up your own market areas8 in Damascus,9 as my father did in Samaria." [Ahab said, ] "On the basis of a treaty10 I will set you free." So he made a treaty with him, and let him go.

References for 1 Kings 20:34