Deuteronomy 21:15 (KJV)
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
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