Deuteronomy 21.15

If a man has two wives, one loved and the other unloved, and both bear him sons, but the firstborn is the son of the unloved wife,כִּֽי־ תִהְיֶ֨יןָ לְאִ֜ישׁ שְׁתֵּ֣י נָשִׁ֗ים הָאַחַ֤ת אֲהוּבָה֙ וְהָאַחַ֣ת שְׂנוּאָ֔ה וְיָֽלְדוּ־ ל֣וֹ בָנִ֔ים הָאֲהוּבָ֖ה וְהַשְּׂנוּאָ֑ה וְהָיָ֛ה הַבֵּ֥ן הַבְּכ֖וֹר לַשְּׂנִיאָֽה׃kî- ṯih·ye·nā lə·’îš šə·tê nā·šîm hā·’a·ḥaṯ ’ă·hū·ḇāh wə·hā·’a·ḥaṯ śə·nū·’āh wə·yā·lə·ḏū- lōw ḇā·nîm hā·’ă·hū·ḇāh wə·haś·śə·nū·’āh wə·hā·yāh hab·bên hab·bə·ḵō·wr laś·śə·nî·’āh