Deuteronomy 20:11

11 And it shall be, if it make thee answer of peace, and open unto thee, then it shall be, that all the people that are found therein shall become tributary unto thee, and shall serve thee.

Deuteronomy 20:11 In-Context

9 And it shall be, when the officers have made an end of speaking unto the people, that they shall appoint captains of hosts at the head of the people.
10 When thou drawest nigh unto a city to fight against it, then proclaim peace unto it.
11 And it shall be, if it make thee answer of peace, and open unto thee, then it shall be, that all the people that are found therein shall become tributary unto thee, and shall serve thee.
12 And if it will make no peace with thee, but will make war against thee, then thou shalt besiege it:
13 and when Jehovah thy God delivereth it into thy hand, thou shalt smite every male thereof with the edge of the sword:
The American Standard Version is in the public domain.