Bereshit / Genesis 36:31 · Sod
וְאֵלֶּה הַמְּלָכִים אֲשֶׁר מָלְכוּ בְּאֶרֶץ אֱדוֹם לִפְנֵי מְלָךְ־מֶלֶךְ לִבְנֵי יִשְׂרָאֵל׃
And these are the kings who reigned in the land of Edom before any king reigned over the children of Israel.
Sod סוֹד
The kings who died
In Kabbalah this verse is one of the deepest in the whole Torah. Agra DeKala sees in the kings of Edom the traits of a person's soul before repair. And Ba'al HaSulam brings the teaching of the Arizal: all the worlds are built from these kings.
Agra DeKala writes: the secret of this portion is in every person. From birth all his traits are "broken": love loves what is forbidden, fear fears the wrong things, pride exalts itself. Then they are called "the kings of Edom". When a person repairs them by Torah and commandments, love loves the Creator, and then they are "the kings of Israel". The kings of Edom reign first, for the evil inclination rules before the good. Ba'al HaSulam brings the teaching of the Arizal: all four worlds, Atzilut, Beriah, Yetzirah and Asiyah, are made from what was sifted out of the seven kings this verse hints at. These kings reigned and died, then were sifted again and then endured.
How Agra DeKala and Baal HaSulam explain it
Agra DeKala "And these are the kings who reigned in the land of Edom before any king reigned over the children of Israel" (Bereshit / Genesis 36:31)
Those who have entered the secret of the Eternal know that in this portion the hidden treasures of our Almighty are stored. And this is so in every person of the children of Israel too: from the day of his birth all his traits are still in the secret of the breaking, in the soul of the husks of nogah. And he loves with the love the Torah forbade. But in truth the trait of love was created only to love the Creator, His Torah and His commandments. And where does love get the power to love what is forbidden? But as long as it is still in the secret of the breaking, this trait, created in the power of his soul, is still sunk in the husk. And when a person repairs it entirely and raises it into a complete form by Torah and commandments, then he will use this trait only to love the Creator, and the bad loves will become loathsome in his eyes. And so with all the traits: fear, splendour and the like. And these things are ancient, known to the wise, and especially to our companions who listen, for there has already been a loving conversation between us on these matters, so I have been brief.
And when the traits are still in the secret of the breaking, so that he loves with his love not by the law of the Torah, and fears what the Blessed One commanded "do not fear", and prides himself in the height of his heart and haughtiness of spirit and the like, then the traits are called "the kings of Edom", the opposite of Israel. And the kings of Edom reign before the kings of Israel (that is, before he repairs all his traits, as said above, for then they are called the kings of Israel), for "sin crouches at the door" (Bereshit / Genesis 4:7), and the evil inclination rules before the good inclination. And this is "and these are the kings who reigned in the land of Edom before any king reigned over the children of Israel". Give to the wise, and he will become wiser still.
Baal HaSulam
(Gate of Introductions, discourse 7, telling from what the four worlds Atzilut, Beriah, Yetzirah, Asiyah came into being, folio 397, page 1.)
I have already told you that all four worlds called Atzilut, Beriah, Yetzirah, Asiyah (אבי״ע) are all made from what was sifted out of those seven kings hinted at in the portion Vayishlach: "and these are the kings who reigned in the land of Edom". For after they reigned, they died and were cancelled, and afterwards they returned and were sifted, and then they endured.
Takeaway
The breaking of the vessels (שְׁבִירַת הַכֵּלִים): by the Arizal, at the beginning of creation the vessels could not hold the light and broke. Kabbalah reads "and he died" of the kings of Edom as a hint at this.
Seven and eight: Kabbalah counts seven kings who "died". Of the eighth, Hadar, it does not say "and he died", and in him is seen the beginning of repair.
The husks of nogah (קְלִיפַּת נֹגַהּ): in Kabbalah a husk where good and evil are mixed. From it the good can be raised to holiness.
Talmud Eser HaSefirot: the great work of Rabbi Yehudah Ashlag (Ba'al HaSulam) with the teaching of the Arizal and a commentary.