Deuteronomy 20:12

But if they are not willing to enter into an agreement, and they begin to act against you in warfare, then you shall besiege it

Other versions

King James Version

And if it will make no peace with thee, but will make war against thee, then thou shalt besiege it:

English Standard Version

But if it makes no peace with you, but makes war against you, then you shall besiege it.

New International Version

If they refuse to make peace and they engage you in battle, lay siege to that city.