KJV Deuteronomy 21:15–17 regulates plural marriage among the Israelites.
Deuteronomy 21:15–17, Old Testament, The Church of Jesus Christ of Latter-day Saints, accessed April 27, 2023
15 If a man have two wives, one beloved, and another hated, and they have born him children, both the beloved and the hated; and if the firstborn son be hers that was hated:
16 Then it shall be, when he maketh his sons to inherit that which he hath, that he may not make the son of the beloved firstborn before the son of the hated, which is indeed the firstborn:
17 But he shall acknowledge the son of the hated for the firstborn, by giving him a double portion of all that he hath: for he is the beginning of his strength; the right of the firstborn is his.