The Realm of Mixture
“According to the Aggadah, the Torah was given twenty-six generations after the creation of the world. But according to the rabbinic interpretation of Psalm 105, God gave His “word” (that is, the Torah) after 1,000 generations had passed. The contradiction is resolved by the talmudic Aggadah by saying that God had dispersed 974 generations of impious men among all the future generations where, in fact, they are the evildoers.
In the Bahir, these evil ones are therefore the bad grapevines, which, however, are not denied the opportunity to submit to a new test and to emerge as righteous. Section 39 says the same thing when it speaks of all the souls flying “up to 1,000 generations” from the mystical region of the Sabbath. The idea that the generation that goes is, according to the number of existing souls, the same as that which returns (section 86), points in the same direction. Here, too, the justification, as we have seen, resulted from the revision of an aggadic parable in the Talmud.
Only if Israel is worthy will it receive the new souls coming from the Sabbath or the east—from the seventh logos (section 104). The majority of the souls must wander until they are redeemed and can return from the world of mixture. The collection of the semen that is dispersed in the cosmos, the realm of mixture, is an old gnostic symbol that acquired great significance in the mystery rites of certain antinomian gnostic sects.”
Gershom Scholem, Origins of the Kabbalah, pp. 189-90.