Read Exodus 21:6 Using Other Translations
Then his master shall bring him unto the judges; he shall also bring him to the door, or unto the door post; and his master shall bore his ear through with an aul; and he shall serve him for ever.
then his master shall bring him to God, and he shall bring him to the door or the doorpost. And his master shall bore his ear through with an awl, and he shall be his slave forever.
If he does this, his master must present him before God. Then his master must take him to the door or doorpost and publicly pierce his ear with an awl. After that, the slave will serve his master for life.