Deuteronomy 15:12-17
Release of Debt Slaves
15:12 If your fellow Hebrew – whether male or female – is sold to you and serves you for six years, then in the seventh year you must let that servant go free.
15:13 If you set them free, you must not send them away empty-handed.
15:14 You must supply them generously from your flock, your threshing floor, and your winepress – as the Lord your God has blessed you, you must give to them.
15:15 Remember that you were a slave in the land of Egypt and the Lord your God redeemed you; therefore, I am commanding you to do this thing today.
15:16 However, if the servant says to you, “I do not want to leave you,” because he loves you and your household, since he is well off with you,
15:17 you shall take an awl and pierce a hole through his ear to the door. Then he will become your servant permanently (this applies to your female servant as well).