Deuteronomy 20:10

10 When you approach a city to fight against it, you should first extend peaceful terms to it.