Deuteronomy 21:15

ACV(i) 15 If a man has two wives, the one beloved, and the other regarded inferior, and they have borne him sons, both the beloved and the one regarded inferior, and if the firstborn son be hers who was regarded inferior,