Deuteronomy 15:19-22

CLV(i) 19 All the firstborn males that shall be born in your herd and in your flock you shall sanctify to Yahweh your Elohim. You shall neither serve with the firstborn of your kine nor shall you shear the firstborn of your flock. 20 You shall eat it before Yahweh your Elohim year by year in the place that Yahweh shall choose, you and your household. 21 Yet in case there should be a blemish in it, lame or blind, any bad blemish, you shall not sacrifice it to Yahweh your Elohim. 22 Within your gates you may eat it, the unclean among you and the clean together, as you would of the gazelle and of the stag.