And the LORD struck the child that Uri'ah's wife bore to David, and it became sick...
On the seventh day the child died. [2 Samuel 12:15b,18a]
So often, God used mistakes people made to be the very things through which he brought the line of Christ.
King David committed adultery with Bathsheba, Uriah's wife. When she told him she was pregnant, he then allowed her husband to be killed in battle.
We are told the child of that union was "struck" by God and died. The innocent baby took the punishment for David's sin. Sound familiar?
Bathsheba, the mother of that first sacrificial child later gave birth to Solomon, in the line of the Ultimate sacrificial child: Jesus Christ. Bathsheba was queen, King David's wife. Bathsheba also was the queen mother, King Jesus' mother.