Leviticus 27:10

New International Version Bible (NIV)
They must not exchange it or substitute a good one for a bad one, or a bad one for a good one; if they should substitute one animal for another, both it and the substitute become holy.

Read Leviticus 27:10 in other translations