Deuteronomy 15:16-23

16 And it shall be, if he say unto thee, `I will not go away from thee,' because he loveth thee and thine house, because he is well with thee,
17 then thou shalt take an awl and thrust it through his ear unto the door, and he shall be thy servant for ever. And also unto thy maidservant thou shalt do likewise.
18 It shall not seem hard unto thee when thou sendest him away free from thee, for he hath been worth a double hired servant to thee in serving thee six years; and the LORD thy God shall bless thee in all that thou doest.
19 "All the firstling males that come from thy herd and from thy flock thou shalt sanctify unto the LORD thy God; thou shalt do no work with the firstling of thy bullock, nor shear the firstling of thy sheep.
20 Thou shalt eat it before the LORD thy God year by year in the place which the LORD shall choose, thou and thy household.
21 And if there be any blemish therein, as if it be lame or blind or have any ill blemish, thou shalt not sacrifice it unto the LORD thy God.
22 Thou shalt eat it within thy gates; the unclean and the clean person shall eat it alike, as the roebuck and as the hart.
23 Only thou shalt not eat the blood thereof; thou shalt pour it upon the ground as water.