Deuteronomy 21:16
Then it shall be, when he maketh his sons to inherit which he has, he may not make the son of the beloved firstborn before the son of the hated, the firstborn:
ā The Restored Word Bible
Context
14 And it shall be, if you have no delight in her, then you shall let her go where she will; but you shall not sell her at all for money, you shall not make merchandise of her, because you hast humbled her.
15 If a man have two wives, one beloved, and another hated, and they have born him children, the beloved and the hated; and the firstborn son be hers that was hated:
16 Then it shall be, when he maketh his sons to inherit which he has, he may not make the son of the beloved firstborn before the son of the hated, the firstborn:
17 But he shall acknowledge the son of the hated the firstborn, by giving him a double portion of all that he has: for he the beginning of his strength; the right of the firstborn his.
18 If a man have a stubborn and rebellious son, which will not obey the voice of his father, or the voice of his mother, and , when they have chastened him, will not hearken unto them: