Exodus 21:6

Amplified Bible (AMP)
then his master shall bring him to God [that is, to the judges who act in God’s name], then he shall bring him to the door or doorpost. And his master shall pierce his ear with an awl (strong needle); and he shall serve him for life.

Read Exodus 21:6 in other translations