...After birth, if the spirit of life grows and power comes and strengthens that soul, no one will be able to lead it stray with evil actions. But people upon whom the false spirit descends are misled by it and go astray.
I said, “Lord, where will their souls go when they leave their flesh?”
He laughed and said to me, “The soul in which there is more power than the contemptible spirit is strong. She escapes from evil, and through the intervention of the incorruptible one, she is saved and is taken up to eternal rest.”
I said, “Lord, where will the souls go of people who have not known to whom they belong?”
He said to me, “The contemptible spirit has grown stronger in such people while they were going astray. This spirit lays a heavy burden on the soul, leads her into evil deeds, and hurls her down into forgetfulness. After the soul leaves the body, she is handed over to the authorities who have come into being through the archon. They bind her with chains and throw her into prison [The soul is thrown into another body and thus is reincarnated]. They go around with her until she awakens from forgetfulness and acquires knowledge. This is how she attains perfection and is saved.”
(The Secret Book of John)