His disciples didn't understand at the time that this was a fulfillment of prophecy. But after Jesus entered into his glory, they remembered what had happened and realized that these things had been written about him.