Deuteronomy 20:10

When, at any time, you approach a city to fight against it, you shall first offer peace to it

Other versions

King James Version

When thou comest nigh unto a city to fight against it, then proclaim peace unto it.

English Standard Version

"When you draw near to a city to fight against it, offer terms of peace to it.

New International Version

When you march up to attack a city, make its people an offer of peace.