Deuteronomy 21:16

16 when that man gives what he has to his sons as an inheritance, he is not to show favoritism to the son of the loved [wife] as his firstborn over the firstborn of the unloved wife.

Deuteronomy 21:16 Meaning and Commentary

Deuteronomy 21:16

Then it shall be, when he maketh his sons to inherit that
which he hath
By a will in writing, or byword of mouth, or by a deed of gift, actually bestowing his goods upon them, and dividing among them what he is for the present possessed of; see ( Luke 15:12 ) ,

that he may not make the son of the beloved firstborn before the son
of the hated, [which is] indeed the firstborn;
that is, when such is the case, that the son of his wife he has the least value for is really his firstborn, he may not, through favour and affection to the wife he loves better, prefer her son, and declare him to be the firstborn, by devising to him or bestowing on him the double portion of his goods; for so to do would not be right, or agreeably to the will and law of God; for though previous to this law the birthright was given to Joseph, the eldest son of Rachel, the most beloved wife of Jacob, before Reuben who was the son of Leah, less beloved by him, and was in fact his firstborn; yet this was owing to the sin of Reuben, and by the appointment of God; see ( Genesis 49:3 Genesis 49:4 ) ( 1 Chronicles 5:2 1 Chronicles 5:3 ) .

Deuteronomy 21:16 In-Context

14 Then if you are not satisfied with her, you are to let her go where she wants, but you must not sell her for money or treat her as merchandise, because you have humiliated her.
15 "If a man has two wives, one loved and the other unloved, and both the loved and the unloved bear him sons, and if the unloved wife has the firstborn son,
16 when that man gives what he has to his sons as an inheritance, he is not to show favoritism to the son of the loved [wife] as his firstborn over the firstborn of the unloved wife.
17 He must acknowledge the firstborn, the son of the unloved wife, by giving him a double portion of everything that belongs to him, for he is the firstfruits of his virility; he has the rights of the firstborn.
18 "If a man has a stubborn and rebellious son who does not obey his father or mother and doesn't listen to them even after they discipline him,
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.