When the Israelites approached a town to attack it , they were to offer it terms of peace .
If the town surrendered , then all the people of the town were to serve the Israelites as forced labor .
When the Israelites approached a town to attack it , they were to offer it terms of peace , and if the town surrendered , then all the people of the town were to serve the Israelites as forced labor .