13 And whence, do you say, do you prove to me that He spoke about the resurrection itself? If you hear patiently, you will presently prove it to yourself. Let us go on then: “Marvel not at this; for the hour comes, in which all that are in the graves.” What more evident than this resurrection? A while ago, He had not said, “they that are in the graves,” but, “The dead shall hear the voice of the Son of God; and they that hear shall live.” He has not said, some shall live, others shall be damned; because all who believe shall live.
But what does He say concerning the graves? “All that are in the graves shall hear His voice, and shall come forth.” He said not, “shall hear and live.” For if they have lived wickedly, and lay in the graves, they shall rise to death, not to life. Let us see, then, who shall come forth. Although, a little before, the dead by hearing and believing did live, there was no distinction there made: it was not said, The dead shall hear the voice of the Son of God; and when they shall have heard, some shall live, and some shall be damned; but, “all that hear shall live:” because they that believe shall live, they that have charity shall live, and none of them shall die.
But concerning the graves, “They shall hear His voice, and come forth: they that have done well, to the resurrection of life; they that have done ill, to the resurrection of judgment.” This is the judgment, that punishment of which He had said a while before, “Whoso believes in me is passed from death to life,” and shall not come into judgment.
Source: Tractates on the Gospel of John (New Advent)