The commandment to sanctify the firstborn serves as a profound theological declaration regarding Divine ownership, providence, and the historical memory of the Exodus from Egypt. It is deliberately placed alongside the pilgrimage festivals, as both draw their core meaning from the Exodus and the Plague of the Firstborn. Furthermore, this directive highlights a direct relationship between humanity and God, establishing a firm boundary against the idolatrous customs of the Canaanite nations, which sometimes involved the sacrifice of human firstborns.
The repetition of this commandment specifically at this moment, following the incident of the Golden Calf, carries special significance. In the aftermath of that sin, the privilege of performing the holy service was taken away from the firstborns and transferred to the Tribe of Levi. To prevent the mistaken assumption that the firstborns had entirely lost their sanctity and were no longer needed, the instruction is reiterated to emphasize that they remain holy to God [העמק דבר, מלבי״ם].
This broad rule encompasses both human firstborns and pure animals [ספורנו, שד״ל, רש״י, חזקוני]. The fundamental concept revolves around the idea of an opening, describing the moment a newborn is released from the narrow, enclosed space of the womb [ביאור יש״ר]. The primary approach among commentators is that the focus is on the mother animal; specifically, any female animal from one's flock that opens its womb by giving birth to a male offspring [רש״י, קאסוטו, ראב״ע, שד״ל, מזרחי, שפתי חכמים]. The obligation is exclusively to separate and dedicate the males, rather than the females [שד״ל, אבן עזרא הקצר, רלב״ג]. Alternatively, some interpret this as a direct instruction to the individual, commanding them to actively sanctify the males [נתינה לגר, אוהב גר]. Crucially, the animal must be under full Jewish ownership; any shared ownership with a non-Jew exempts the offspring from the sacred status of a firstborn [תורה תמימה].
The law is further narrowed down to specific pure animals like the ox and the sheep. This detail teaches that the laws governing impure firstborn animals do not apply to creatures like horses or camels. Instead, the rule is limited exclusively to the donkey, which earned this special status because it helped the Israelites carry their burdens when they left Egypt.
On a deeper conceptual level, dedicating the male firstborn is linked to the idea of a memorial offering burned on the altar. By sanctifying the firstborn, a person's entire property is remembered favorably and sheltered under Divine protection. Material wealth only gains lasting value when it becomes an active part of serving God [רש״ר הירש, ספורנו]. Ultimately, this commandment integrates seamlessly with the duty of the pilgrimage. It reflects the idea that a person should not appear before God empty-handed, but should instead bring the firstborns of their flock and cattle to the Temple, thereby binding their entire existence and material wealth to the service of God [מלבי״ם, קאסוטו, רש״ר הירש].