Cur Deus Homo, II-III
From Saint Wiki
Cur Deus Homo
How man will rise with the same body which he has in this world.
Anselm. From this the future resurrection of the dead is clearly proved. For if man is to be perfectly restored, the restoration should make him such as he would have been had he never sinned.
Boso. It must be so.
Anselm. Therefore, as man, had he not sinned, was to have been transferred with the same body to an immortal state, so when he shall be restored, it must properly be with his own body as he lived in this world.
Boso. But what shall we say to one who tells us that this is right enough with regard to those in whom humanity shall be perfectly restored, but is not necessary as respects the reprobate?
Anselm. We know of nothing more just or proper than this, that as man, had he continued in holiness, would have been perfectly happy for eternity, both in body and in soul; so, if he persevere in wickedness, he shall be likewise completely miserable forever.
Boso. You have promptly satisfied me in these matters.