(Leviticus 22:27:) "And it shall be seven days under its mother." Rabbi Joshua of Sikhnin said in the name of Rabbi Levi: A parable. It is like a king who entered a province, [and issued a proclamation] and said: All the guests who are here shall not see my face until they first see the face of the matron. So too the Holy One, blessed be He, said to Israel: My children, do not offer a sacrifice before Me until the Sabbath has passed over it; for there are no seven [days] without a Sabbath, and there is no circumcision without a Sabbath. Rabbi Isaac said: The law of a person and the law of an animal. [The law of] a person: "and on the eighth day he shall be circumcised" (Leviticus 12:3). [The law of] an animal: "from the eighth day onward it shall be accepted" (Leviticus 22:27).
Why a Newborn Animal Must First Pass Through Shabbat
Midrash Tanchuma Buber, Emor 17:1
והיה שבעת ימים תחת אמו. ר' יהושע דסכנין בשם ר' לוי משל למלך שנכנס למדינה, [והוציא כרוז] ואמר כל אכסנאין שיש כאן אל יראו פני עד שיראו פני מטרונא [תחלה], כך אמר הקב"ה לישראל, בני לא תקריבו לפני קרבן עד שיעבור עליו השבת, שאין שבעה בלא שבת, ואין מילה בלא שבת. אמר ר' יצחק משפט אדם ומשפט בהמה, [משפט] אדם, וביום השמיני ימול (ויקרא יב ג), [ומשפט] בהמה, מיום השמיני והלאה ירצה (שם כב כז).