Deuteronomy 15:12-17 ESV
“If your brother, a Hebrew man or a Hebrew woman, is sold to you, he shall serve you six years, and in the seventh year you shall let him go free from you. And when you let him go free from you, you shall not let him go empty-handed. You shall furnish him liberally out of your flock, out of your threshing floor, and out of your winepress. As the LORD your God has blessed you, you shall give to him. You shall remember that you were a slave in the land of Egypt, and the LORD your God redeemed you; therefore I command you this today. But if he says to you, ‘I will not go out from you,’ because he loves you and your household, since he is well-off with you, then you shall take an awl, and put it through his ear into the door, and he shall be your slave forever. And to your female slave you shall do the same.
ESV: English Standard Version 2016