Deuteronomy 21:16 - Bbe

Then when he gives his property to his sons for their heritage, he is not to put the son of his loved one in the place of the first son, the son of the hated wife: