Deuteronomy 20:11

11And if it responds to you peaceably and it opens to you, then all the people who are found in it shall do forced labor for you and shall serve you.

Joshua 9:21

21And the leaders said to them, “Let them live.” So they became acutters of wood and drawers of water for all the congregation, just as the leaders bhad said of them.

Copyright information for ESV