Moses
Deuteronomy 21:16ESV·traditional attribution

then on the day when he assigns his possessions as an inheritance to his sons, he may not treat the son of the loved as the firstborn in preference to the son of the unloved, who is the firstborn,

Matthew Henry Presbyterian @wholebiblehenry

This law restrains men from disinheriting their eldest sons out of mere caprice, and without just provocation. I. The case here put (Deu 21:15) is very instructive. 1. It shows the great mischief of having more wives than one, which the law of Moses did not restrain, probably in hopes that men's own experience of the great inconvenience of it in families would at last...

Commenting on Deuteronomy 21:15-17

John Gill Reformed Baptist @doctorgill

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 Luk 15:12, that he may not make the son of the beloved firstborn before the son...

Jamieson-Fausset-Brown Reformed @jfbcommentary

THE TREATMENT OF A CAPTIVE TAKEN TO WIFE. (Deu 21:10-23) When thou goest to war . . . and seest among the captives a beautiful woman . . . that thou wouldest have her to thy wife--According to the war customs of all ancient nations, a female captive became the slave of the victor, who had the sole and unchallengeable control of right to her person.

Commenting on Deuteronomy 21:10-23