The crucifixion and its meaning were revealed hundreds of years before the fact Jesus himself often quoted from Isaiah 53, that said of the Messiah:
He poured out his life unto death,
and was numbered with the transgressors. For he bore the sin of many, and made intercession for the transgressors (Isaiah 53:12)