"to fulfill the prophecy in their law"
This refers generally to the entire Old Testament, which contained all of God's instructions for his people.