[When He created the Messiah,] the Holy One, blessed be He, began to tell him the conditions [of his future mission], and said to him: 'Those who are hidden with you [your generation], their sins will in the future force you into an iron yoke...and because of their sin your tongue will cleave to the roof of your mouth.' [Psalm 22:25] Do you accept this? The Messiah said...'Master of the worlds! With gladness in my soul and with joy in my heart I accept it, so that not a single one of Israel should perish; and not only those who will be alive should be saved in my days, but even the dead who have died from the days of Adam the first man until now.'1
The Midrash Aseret Memrot states that Messiah will be made a trespass offering:
The fact is that Isaiah 53 (more precisely, 52:13 to 53:12) has been interpreted in messianic terms by a wide variety of Jewish commentators over a long period of time. Other interpretations have certainly been offered, including the view first popularized by Rashi in medieval times that the prophet speaks of the nation of Israel. Neverthless the messianic interpretation has a long history in Jewish Bible exegesis, as shown by the quotations below.....
Yet that is not the universal Jewish understanding. According to the views of some rabbis, two Messiahs would make their appearance: Messiah ben Joseph who would be slain in battle, followed by Messiah ben David who reigns as the victorious king. Any number of Jewish sources therefore refer this verse to the slaying of the Messiah ben Joseph. At least one commentator believes that the Messiah ben Joseph dies as an atonement for the sins of Israel. Some Jewish sources which take a messianic interpretation of Zechariah 12:10 are as follows:
Babylonian Talmud, Sukkah 52a
Our Rabbis taught, The Holy One, blessed be He, will say to the Messiah, the son of David (May he reveal himself speedily in our days!), 'Ask of me anything, and I will give it to thee', as it is said, I will tell of the decree etc. this day have I begotten thee, ask of me and I will give the nations for thy inheritance [Psalms 2:7-8].