Leviticus 27:33

It shall not be chosen by what is good or bad; neither shall it be exchanged for another. If anyone has exchanged it, both that which was exchanged, and that for which it was exchanged, shall be sanctified to the Lord and shall not be redeemed

Other versions

King James Version

He shall not search whether it be good or bad, neither shall he change it: and if he change it at all, then both it and the change thereof shall be holy; it shall not be redeemed.

English Standard Version

One shall not differentiate between good or bad, neither shall he make a substitute for it; and if he does substitute for it, then both it and the substitute shall be holy; it shall not be redeemed."

New International Version

He must not pick out the good from the bad or make any substitution. If he does make a substitution, both the animal and its substitute become holy and cannot be redeemed.'"