Then Abimelech went to Thebez, encamped against it, and captured it.