Deuteronomy 15
19 Ref All the first males to come to birth in your herd and your flock are to be holy to the Lord your God: the first birth of your ox is not to be used for work, the wool of your first lamb is not to be cut.
20 Ref But year by year you and all your house are to take a meal of it before the Lord, in the place of his selection.
21 Ref But if it has any mark on it, if it is blind or has damaged legs, or if there is anything wrong with it, it may not be offered to the Lord your God.
22 Ref It may be used for food in your houses: the unclean and the clean may take of it, as of the gazelle and the roe.