Deuter­­onomy 21:16 Modern English Version (MEV)

then it must be, when he gives his sons the inheritance which he has, that he may not make the firstborn son of the loved come before the son of the unloved, who was indeed the firstborn.

Deuter­­onomy 21

Deuter­­onomy 21:11-23