כִּֽי־תִהְיֶ֨יןָ לְאִ֜ישׁ שְׁתֵּ֣י נָשִׁ֗ים הָאַחַ֤ת אֲהוּבָה֙ וְהָאַחַ֣ת שְׂנוּאָ֔ה וְיָֽלְדוּ־ל֣וֹ בָנִ֔ים הָאֲהוּבָ֖ה וְהַשְּׂנוּאָ֑ה וְהָיָ֛ה הַבֵּ֥ן הַבְּכ֖וֹר לַשְּׂנִיאָֽה׃
Если у мужчины две жены, одну возлюбленную, а другую ненавидят, и они родили ему детей, как возлюбленных, так и ненавистных; и если первенец будет ее ненавистным;
Mishnah Bekhorot
A fetus extracted by means of a caesarean section and one that follows neither is a first-born for inheritance or a first-born to be redeemed from a priest. Rabbi Shimon says: the first is a first-born for inheritance and the second is a first-born as regards [the redemption] with five selas.