The Zohar, Chapter “BeShalach (When Pharaoh Sent),” Items 28-29: Pharaoh rose in the land of Egypt and killed and avenged his rulers, ministers, officers, and every kind of minister…
Afterwards he called unto Moses and Aaron at night, “Since everything was through you, and bless me, too,” meaning do not kill me. Afterwards, he himself escorted them out of the land…
We don’t understand the extent to which this horrible, evil force called Pharaoh is mighty and opposite to the Creator. It is the imprint of the Creator and acts as His loyal messenger. As Pharaoh becomes revealed more and more, this revelation of evil pushes a person to come out of his ego.
This is what we are now observing in the world: On one hand we are becoming greater egoists, acting only for the sake of our own benefit without taking anyone into consideration, and on the other hand the growing egoism increasingly reveals to us that we are obligated to part with it, that this form of existence is impossible and we are approaching universal destruction.
This is the meaning of the phrase, “Pharaoh brought the sons of Israel closer to the Creator.” In this way the negative force is carrying out its function in order to push us closer to spirituality.
From the 2nd part of the Daily Kabbalah Lesson 10/19/10, The Zohar