Deuteronomy 15:17

17 take an awl and pierce through his ear into the door, and he will become your slave for life. Also treat your female slave the same way.

Deuteronomy 15:17 Meaning and Commentary

Deuteronomy 15:17

Then thou shall take an awl, and thrust it through his ear
unto the door
Not of his master's house, but of the sanhedrim, or court of judicature, according to the Targum of Jonathan, before whom he was to be brought, and declare his desire to continue with his master; (See Gill on Exodus 21:6),

and he shall be thy servant for ever;
that is, unto the jubilee, as the same Targum; for then all servants were released, and so Jarchi calls it the ever of jubilee:

and also unto thy maidservant thou shall do likewise;
not bore her ear, for, as both Jarchi and Aben Ezra, and others say, she was not to be bored; though some are of opinion that a maidservant who was willing to continue with her master was to be bored as a manservant; but this respects the manner of dismissing her, or letting her go free, when she was not to go empty, but to be liberally furnished and supplied, as a manservant was.

Deuteronomy 15:17 In-Context

15 Remember that you were a slave in the land of Egypt and the Lord your God redeemed you; that is why I am giving you this command today.
16 But if your slave says to you, 'I don't want to leave you,' because he loves you and your family, and is well off with you,
17 take an awl and pierce through his ear into the door, and he will become your slave for life. Also treat your female slave the same way.
18 Do not regard it as a hardship when you set him free, because he worked for you six years-worth twice the wages of a hired hand. Then the Lord your God will bless you in everything you do.
19 "You must consecrate to the Lord your God every firstborn male produced by your herd and flock. You are not to put the firstborn of your oxen to work or shear the firstborn of your flock.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.