Deuteronomy 21:16
Amplified Bible (AMP)
Then on the day when he wills his possessions to his sons, he shall not put the firstborn of his loved wife in place of the [actual] firstborn of the disliked wife--her firstborn being older.— Deuteronomy 21:16 (AMP)