Leviticus 27:32-33
27:32 All the tithe of herd or flock, everything which passes under the rod, the tenth one will be holy to the Lord.
27:33 The owner must not examine the animals to distinguish between good and bad, and he must not exchange it. If, however, he does exchange it, both the original animal and its substitute will be holy. It must not be redeemed.’”