Deuteronomy 21:16

Leeser(i) 16 Then shall it be, when he divideth as inheritance among his sons what he hath, that he shall not institute the son of the beloved as the first-born before the son of the hated, the firstborn;