Leviticus 27:10
You may not exchange or substitute it for another animal—neither a good animal for a bad one nor a bad animal for a good one. But if you do exchange one animal for another, then both the original animal and its substitute will be considered holy.