Regarding Adam Harishon[...] there was no death, and tehre was no relevance to refinement or purification at all. Like it was by the body of Adam Harishon, so too the bodies in the time of resurrection will be completely holy and pure and will live forever. In fact, the truth is that the bodies that will be in the time of the resurrection will be on a higher level than like the body of Adam Harishon, that although the body of Adam Harishon was holy and pure, yet there was the sin of the tree of knowledge; in the time of the resurrection of the dead there will certainly be no relevance to the subject of sin at all. Because at the Creation the man was in a state of perfection, but the world contained the existence of "shells", only that their place was very low. The intent being that their correction should come about through the labor of the man, because the way of labor is only when there is a source of opposition and temptation and deception; thus, even though the body of Adam Harishon was the formation of the hands of the Holy One, blessed be He, it was in a way which allowed for the possiblity [of choosing evil], for if not then there would be no labor at all. But at the resurrection of the dead, which is after the correction and refinement, because during the days of Moshiach the spirit of evil will be removed, and all the moreso in the time of the resurrection of the dead there will be the bringing into being of the body on a higher level and it will be on the ultimate level of perfection even higher than the body of Adam Harishon.
Sefer Hamaamorim 5711 (Rebbe Rayatz) p.207