Exodus 21:6

then his lord shall make an offering for him to the heavens, and it shall be applied to the door and the posts, and he will pierce his ear with an awl. And he shall be his servant in perpetuity

Other versions

King James Version

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.

English Standard Version

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.

New International Version

then his master must take him before the judges. He shall take him to the door or the doorpost and pierce his ear with an awl. Then he will be his servant for life.