Who have erred: they went out from us (1 John 2:19). Then he enlarges on this, because it had been better for them not to have known the way of justice, than after they have known it to turn back (2 Pet 2:21).
But they erred, saying that the resurrection is past already. On this point Matthew says: and the graves were opened and many bodies of the saints that had slept arose (Matt 27:52). So they said that no further resurrection can be expected, but that they rose on that occasion.
But another way and better: just as there are two deaths, so two resurrections: namely, of the soul and of the... body: blessed and holy is he that has part in the first resurrection (Rev 20:6). Therefore, they said that everything said in the Scriptures must be referred to the resurrection of souls which has already taken place: if you be risen with Christ, seek the things that are above (Col 3:1). And this error is prevalent among heretics to this day, and they use it to subvert many.
Hence he says quite fittingly, and have subverted the faith of some, because they attack the very foundation of the faith: O, full of all guile and of all deceit, child of the devil, enemy of all justice, you cease not to pervert the ways of the Lord (Acts 13:10).
Source: Commentary on 2 Timothy