If he was single at the time you bought him, he alone must be set free. But if he was married at the time, both he and his wife must be given their freedom.
If you buy a Hebrew slave, he must remain your slave for six years. But in the seventh year you must set him free, without cost to him.
If you give him a wife, and they have children, only the man himself must be set free; his wife and children remain the property of his owner.
A young woman who was sold by her father doesn't gain her freedom in the same way that a man does.
so they and their children may return home to their families and property.