ספר הזהר, Bereshit Bereshit · טז
Zohar 50
א
Another explanation of "Let Us make man in Our image, after Our likeness..." (Beresheet 1:26) was given by the friends as referring to the ministering angels who spoke this phrase (to Hashem). (R' Shimon) said to them: Since the angels already know the past and the future, they already knew that man was destined to sin. Why then did they want to make man?
ב
Not only that, but (the Angels) Aza and Azael also opposed (man's creation). When the Shechinah said to the Holy One, blessed be He, "Let Us make man," they responded, "What is man that You take knowledge of him?" (Tehilim 144:3). Why do you wish to create man when You know that he shall definitely sin before you, with his wife, who represents darkness, because the light is the male and darkness is the Female principle, the Left, darkness of Creation. At that moment, the Shechinah said to them: You will fall by the same reasoning that you denounce, as it is written: "That the sons of Elohim saw that the daughters of men were fair" (Beresheet 6:2), so they went astray after them. And the Shechinah caused them to fall from their holy state.
ג
The friends said, Rabbi, Rabbi, Aza and Azael did not lie, because Adam definitely was destined to sin by his wife. He replied: This is what the Shechinah said, You, (the aforementioned Angels), have laid accusations before me that go beyond those of all the hosts above. If you were better than man in your actions, you would have had a right to accuse him, but man will sin only with one woman while you are destined to sin with many women. Therefore, your sins are greater than those of human beings, as it is written: "The sons of Elohim saw the daughters of man." It is not written: 'the daughter of men,' but rather "the daughters of men". As man sinned, I prepared atonement for him to amend his sin.
ד
The friends asked, If so, why all this? Rabbi Shimon replied: If the Holy One, blessed be He, had not created the Evil and Good Inclinations, which are light and darkness, there would not have been any precepts or transgressions for the man of Briyah. So man was created with both, as it is written: "See, I have set before you this day life and good, and death and evil" (Devarim 30:15). They asked him: why all this? Better He had not created darkness. Then man would have no reward or punishment as opposed to being created and having to sin, thereby causing much (damage and destruction).
ה
He said to them: It was right to create him thus, because the Torah was created for the sake (of man), for it contains punishments for the sinful and rewards for the righteous. Thus, there can be no reward for the righteous or punishment for the sinful without the man of Briyah: "He did not create it a wasteland (lit. 'formless'), He created it to be inhabited" (Isaiah 45:18). (The friends) said, Indeed, we have certainly now heard what we had never heard before. It is now clear that the Holy One, blessed be He, did not create anything that he did not require. Furthermore, the Torah of Briyah
ו
is the clothing of the Shechinah. If man had not been created, the Shechinah would have remained without clothing, like a pauper. Therefore, whoever sins acts as if he is stripping the Shechinah of Her garments. This is the punishment for the man (who sins).
ז
Whoever performs the precepts of the Torah acts as if he is dressing the Shechinah in Her garments. According to this, (what was said) about the garment of the Tzitzit reads, "For that is his only covering, it is his raiment for his skin; in what shall he sleep?" (Shemot 22:26). (This applies) in exile. Come and behold: Darkness is black in the Torah. Light is the white in the Torah.