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.