Exodus 21 :: NIV. "If you buy a Hebrew servant, he is to serve you for six years. But in the seventh year, he shall go free, without paying anything. If he comes alone, he is to go free alone; but if he has a wife when he comes, she is to go with him.
eviticus 25:44-46 44 “ ‘Your male and female slaves are to come from the nations around you; from them you may buy slaves. 45 You may also buy some of the temporary residents living among you and members of their clans born in your country, and they will become your property. 46 You can bequeath them to your children as inherited property and can make them slaves for life, but you must not rule over your fellow Israelites ruthlessly.