Leviticus 27:26

But no one may consecrate a firstborn of the livestock, because a firstborn belongs to the Lord. Whether it is an ox or a sheep, it is the Lord’s.
BSB · Berean Standard Bible
Only the firstling of the beasts, which should be the Lord’s firstling, no man shall sanctify it; whether it be ox, or sheep: it is the Lord’s.

Note firstling of: Heb. firstborn, etc

KJV · King James Version
“‘However the firstborn among animals, which belongs to the Lord as a firstborn, no man may dedicate, whether an ox or a sheep. It is the Lord’s.
WEB · World English Bible
Only the firstling among beasts, which is made a firstling to Jehovah, no man shall sanctify it; whether it be ox or sheep, it is Jehovah’s.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

which
Exodus 13:2, 12, 13; Exodus 22:30; Numbers 18:17; Deuteronomy 15:19