When thou comest nigh unto a city to fight against it, then proclaim peace unto it.
When you approach a city to fight against it, you are to make an offer of peace.
Read Deuteronomy 20