Apocryphon of John(long version)
And I said to the savior, “Lord, will all the souls then be brought safely into the pure light?” He answered and said to me, “Great things have arisen in your mind, for it is difficult to explain them to others except to those who are from the immovable race. Those on whom the Spirit of life will descend and (with whom) he will be with the power, they will be saved and become perfect and be worthy of the greatness and be purified in that place from all wickedness and the involvements in evil.
Then they have no other care than the incorruption alone, to which they direct their attention from here on, without anger or envy or jealousy or desire and greed of anything. They are not affected by anything except the state of being in the flesh alone, which they bear while looking expectantly for the time when they will be met by the receivers (of the body). Such then are worthy of the imperishable, eternal life and the calling. For they endure everything and bear up under everything, that they may finish the good fight and inherit eternal life.”
I said to him, “Lord, the souls of those who did not do these works (but) on whom the power and Spirit descended, (will they be rejected?” He answered and said to me, “If) the Spirit (descended upon them), they will in any case be saved, and they will change (for the better). For the power will descend on every man, for without it no one can stand. And after they are born, then, when the Spirit of life increases and the power comes and strengthens that soul, no one can lead it astray with works of evil. But those on whom the counterfeit spirit descends are drawn by him and they go astray.”
And I said, “Lord, where will the souls of these go when they have come out of their flesh?” And he smiled and said to me, “The soul in which the power will become stronger than the counterfeit spirit, is strong and it flees from evil and, through the intervention of the incorruptible one, it is saved, and it is taken up to the rest of the aeons.”
And I said, “Lord, those, however, who have not known to whom they belong, where will their souls be?” And he said to me, “In those, the despicable spirit has gained strength when they went astray. And he burdens the soul and draws it to the works of evil, and he casts it down into forgetfulness. And after it comes out of (the body), it is handed over to the authorities, who came into being through the archon, and they bind it with chains and cast it into prison, and consort with it until it is liberated from the forgetfulness and acquires knowledge. And if thus it becomes perfect, it is saved.”
And I said, “Lord, how can the soul become smaller and return into the nature of its mother or into man?” Then he rejoiced when I asked him this, and he said to me, “Truly, you are blessed, for you have understood! That soul is made to follow another one (fem.), since the Spirit of life is in it. It is saved through him. It is not again cast into another flesh.”