Joseph interprets Pharaoh's Dream (Genesis 41:15–41). Of the Biblical figures in Judaism, Yosef is customarily called the Tzadik. Where the Patriarchs lived supernally as shepherds, the quality of righteousness contrasts most in Joseph's holiness amidst foreign worldliness. In Kabbalah, Joseph embodies the Sephirah of Yesod, the lower descending connection of spirituality to materiality, the social role of the Tzadik in Hasidism.

Tzadik/Zadik/Sadiq[tsaˈdik] (Hebrew: צדיק‎‎, "righteous one", pl. tzadikim[tsadiˈkim] צדיקים ṣadiqim) is a title in Judaism given to people considered righteous, such as Biblical figures and later spiritual masters. The root of the word ṣadiq, is ṣ-d-q (צדקtzedek), which means "justice" or "righteousness", also the root of tzedakah ('charity', literally 'righteousness'). The feminine term for a righteous person is tzadeikes/tzaddeket.

In classic Jewish thought, there are various definitions of a tzadik. According to Maimonides (based on Tractate Yevamot of the Babylonian Talmud 49b-50a): "One whose merit surpasses his iniquity is a tzadik".[4]

According to the Hasidic Tanya (based on passages in Tanakh and the Talmud, and the tradition in Kabbalah), the true title of tzadik denotes a spiritual description of the soul. Its true meaning can only be applied to one who has completely sublimated their natural "animal" or "vital" soul inclinations into holiness, so that they experience only love and awe of God, without material temptations. Hence, a tzadik serves a "vehicle" or "merkavah" [מרכבה] {Tanya ch.23} to God and has no ego or self-consciousness. Note, that a person cannot attain such a level, rather it is granted from on High (or born with, etc.)tanya ch.27. This select level elevates the "Intermediate" person ("Benoni") into one who never sins in thought, speech or action. Unlike the Tzadik, they only experience Divine communion during devoted moments of worship or study, while in mundane life they can be tempted by natural inclinations, but always choose to stay connected to holiness. In the Tanya[5] the difference between the former Talmudic-Maimonidean and latter Kabbalistic-Hasidic conceptions is raised. Since the "Torah has 70 facets" of interpretation, perhaps both conceptions are metaphysically true:

As for what is written in the Zohar III, p.231: He whose sins are few is classed as a "righteous man who suffers", this is the query of Rav Hamnuna to Elijah. But according to Elijah's answer, ibid., the explanation of a "righteous man who suffers" is as stated in Raaya Mehemna on Mishpatim, which is given above. (Distinguishing 2 levels of Tzadik: The "righteous who prospers"-literally "good to him" is interpreted to mean that the natural soul in him has become "his own-transformed to good". The "righteous who suffers"-literally "bad to him" is interpreted to mean that his natural soul still exists in his unconscious, but is nullified to his Divine soul, "the bad-is under him") And the Torah has seventy facets. (So the reason for the question)

The Talmud[6] says that at least 36 Tzadikim Nistarim—anonymous tzadikim—are living among us in all times; they are anonymous, and it is for their sake alone that the world is not destroyed. The Talmud and the Kabbalah offer various ideas about the nature and role of these 36 tzadikim. In Jewish folklore they are called "lamedvovniks", from the gematria numerical value for 36. In Hasidism, with its social institution of the Tzadik in the central role of the community, the 36 may not necessarily be unknown, therefore. However, a Hasidic aphorism describes a known Rebbe Tzadik as being among the 36, as their true greatness could be concealed beyond the perception of their devoted followers.

Kabbalah describes an extension of Moses in each generation, alternately identified with the Tzadik of the generation, and the potential Messiah of the generation. In Hasidism, each person's soul essence relates to the level of Moses.

Hasidim adhere to the belief that there is a person born each generation with the potential to become Messiah, if the Jewish people warrant his coming. This candidate is known as the Tzadik Ha-Dor, meaning Tzaddik (a Hebrew term literally meaning "righteous one" but used to refer to holy men who can, for example, perform miracles or act as a "pipeline" between man and God) of the Generation.

While the tzadik status, according to its above definitions, is not necessarily related to the ability to perform or call upon miracles, the term tzadik is often used loosely by the Talmud to indicate those who have achieved especially outstanding piety and holiness. In this context, the tzadik's prayers are considered especially potent, as the Talmud states: "A tzadik decrees and the Holy One (blessed be He) fulfills." This is line with the talmudic dictum: Rabban Gamliel the son of Rabbi Judah haNasi used to say: "Make His Will your own will, that He make your will as His Will."[7]

In some contexts, people refer specifically to the pious miracle-worker as a tzadik. According to the Baal Shem Tov, it is said, this ability is attainable for every Jew. It is told that he stated that every Jew has the power to cross a river atop a handkerchief [source?], through connecting with their soul (which is divine in essence). In Hasidism, the doctrine of "Practical Tzadikism", developed by Elimelech of Lizhensk, involved the Tzadik performing miracles to channel the Ayin-Yesh Divine blessing. In its most extreme version, Hasidic "wonder-workers", predominant in 19th century Poland, emphasised this conception, sometimes criticised by other Hasidic leaders as superficial. To Menachem Mendel of Kotzk, and his reaction against Popular Tzadikism, the greatest miracle was to examine oneself without self-delusion.

According to the first definition above, that a tzadik is "one whose merit surpasses [their] iniquity." According to the definition of the Tanya that a Tzadik has no evil inclination, only a select few predestined to attain this level can attain it.

According to kabbalah, a tzadiki, because they have completely nullified themselves and their desires to what God wants, their Godly soul (which like every Godly soul is part of God) is revealed within them more than other people who have not completely nullified themselves to God. This concept is based upon many Jewish sources. Here are some:

The Jerusalem Talmud[8] "All the standing that the prophet Elijah did before his teacher Achiya Hashiloni, were as if standing before the Shekhinah." And this is explained in Yesod HaAvoda in the name of the Radbaz, "This was because Achiya had his mind and thoughts connected and cleaved to the greatness of the holy one, and Elijah when he stood before his teacher connected his thoughts with the thoughts of his teacher with the love from his heart, and therefore it was as if he stood in front of the Shekhinah."

Bahya ben Asher[9] comments on the verse "And Moses took the tent and pitched it for himself outside the camp, distancing [it] from the camp, and he called it the tent of meeting, and it would be that anyone seeking the Lord would go out to the tent of meeting, which was outside the camp." saying that "From here we see that Moses was called with the Tetragrammaton, and we also find that Jacob is called with El...And we also find by the name of a Tzadik that he is called with the Tetragrammaton... And we also find that by King Messiah that he is called with the Tetragrammaton as it is stated.[10] and this is his name that he shall be called, The Lord is our righteousness...And the reason by all of them is because one who cleaves to something, is called by the thing which he is cleaving to."

Yoel Sirkis[11] "The purpose of The Blessed One was always that one should be involved in Torah in order to bond our souls in the essence and spirituality and holiness of the source of the giver of the Torah...And if one is involved in Torah study with this intention, one becomes a Merkavah and Heichal for the Shekhinah may he be blessed, so that the Shekhinah is literally within them, because they are a Heichal to God and within them literally the Shekhinah establishes its dwelling place."

Chaim Volozhin[12] "If someone sanctifies himself properly through the performance of all the Mitzvot...Then he himself is the Beit HaMikdash itself...Because this is the truth regarding Tzadikim through the deeds which are desirable by the blessed one they are the Mikdash mamash"

Moshe Chaim Luzzatto[13] "The holy one who cleaves constantly to God and his soul fires up with true intellectual understanding with great love of his creator and fear...Behold a person like this, he himself, is considered to be like the TabernacleBeit HaMikdash and the Mizbeiach...And also it is said regarding Tzadikim they are the Markavah, because the Shekhinah dwells in them just like it dwelled in the Beit HaMikdash."

Rabbi Eliyahu Eliezer Dessler[14] "And this thing is so much certain to one that thinks in depth about it, until it is impossible to understand how someone can argue on it, and so was already mentioned in the words of many of the great scholars like the Ramchal and others, that the image of Tzadikim is Hashem may He be blessed, Himself, and they are the same."

In 1951 the seventh Rebbe of Chabad, Rabbi Menachem Mendel Schneerson made a similar statement[15] regarding the practice by Hasidim to have a Rebbe act as an intermediary with God on their behalf. He explained, "The Rebbe is completely connected with his Hasidim, not like two separate things that connect; rather, they become completely one. And the Rebbe is not an intermediary which separates, but one that connects. Therefore by a Hassid, he with the Rebbe with God are all one ... Hence, it is not possible to ask any questions about [how it is possible to turn to the Rebbe as] an intermediary [for the purpose of asking him to pray to Hashem on one’s behalf], since this is Atzmus uMehus [God's Essence] itself as it put itself in a body. This is similar to the statement of the Zohar,[16] 'Whose is the face of the Master [God]? This is the Rashbi.'."

In the system of 10 Sephirot Divine emanations in Kabbalah, each of the 7 emotional expressions is related to an archetypal figure in the Hebrew Bible. The first emanated realm to emerge from God's potential Will in Creation is Atziluth, the World of "Emanation". As it is still nullified to Divinity, so not yet considered a self-aware existence, it is the realm where the 10 Sephirot attributes of God are revealed in their essence. In lower spiritual worlds the sephirot also shine, but only in successively lower degrees, concealed through successive contractions and veilings of the Divine vitality. Seven Biblical tzadikim, righteous figures are considered as embodiments of the emotional sephirot of Atzilut: Abraham-Kindness, Isaac-Restraint, Jacob-Mercy, Moses-Endurance, Aaron-Glory, Joseph-Foundation, David-Kingship. While all seven figures are considered supreme Tzadikim, in particular contexts, either Joseph as Yesod, and Moses as inclusive soul of the community, are identified especially as archetypes for the Tzadik in general.

In the sephirot, Chesed-Abraham, Gevurah-Isaac and Tiferet-Jacob are higher spiritual powers than Yesod-Joseph, which channels the higher powers to their fulfilment in Malchut action. However, traditionally in Judaism, Joseph is referred to with the quality of "Tzadik-Righteous". While the Patriarchs lived righteously as shepherds, Joseph remained holy in Egypt, surrounded by impurity, tested by Potiphar's wife, captive in prison, and then active as viceroy to Pharaoh. As the Heavenly sephirah of Yesod-"Foundation" channels spirituality to our physical realm, so in Kabbalah and the further development in Hasidic thought, its function also parallels the human role of the Tzadik in this world:

In the Divine, Yesod is the 9th Sefirah, in the middle balanced column, connecting all the higher sefirot, centred on Tiferet-"Beautiful" emotional harmony, to the last sefirah Malchut- realisation in "Kingship". In the flow of Divine Creative lifeforce, this represents the connecting channel between Heaven and Earth, between the "Holy One Blessed Be He" (Tiferet Divine transcendent male manifestation of God), and the "Shekhinah" (Malkuth indwelling Divine immanent female presence of God). The 16th century Safed Kabbalists introduced the prayer "For the sake of the union" of these principles before Jewish observances.

In the soul, Yesod is contact, connection and communication with outer reality of malchut, similar to the way the foundation of a building connects it with the earth.

In the bodily form of man and woman, Yesod corresponds to the organ of procreation, analogously where the Tiferet body descends towards action, expressed in the procreative power to create life. This relates to the Circumcision "Covenant of Abraham", the Jewish "Sign of the Covenant" with God. As the Torah describes two levels of Jewish covenant, physical "covenant of circumcision" and spiritual "circumcision of the heart", so women are considered born already physically circumcised. Joseph's resistance to Potiphar's wife represents his perfection of the "Sign of the Covenant". Yesod is the foundation of a person's future generations, the power of generating infinity in the finite.

Yesod is identified with the righteous tzadik, "the tzadik is the foundation of the world". As Jewish mysticism describes different levels of Tzadik, Kabbalah sees this verse as particularly referring to the one perfect tzadik of the generation. In the tzadik, God's infinite-transcendent light becomes manifest in this finite-immanent world. The tzadik procreates spiritually through revealing Divinity in new Torah interpretations, and through awakening return to God in his generation.

Yesod connects beginning to end in God who encompases all. In the Bible, Abraham began the Yesod covenant of circumcision, though his sefirah is Chesed love-kindness, the first emotional expression. Love creates the unity of spiritual covenant. For Abraham this descended into action, to become expressed in the physical covenant of circumcision. Yesod expresses this descent, uniting spiritual and physical. "Foundation" is the beginning of a building and the conclusion of planning. Yesod is the power to bring action to conclusion, to reveal that the beginning and end are united in God, "the end is wedged in the beginning, and the beginning in the end".[20]

Each Sefirah contains an inner dimension, as a soul motivating its outer Kabbalistic emanation function. Hasidic thought explores the Divine motivation within, by psychologising Kabbalah through man's experience. The inner motivation of Yesod is Emet-truth, each person's desire for their actions to reflect their true soul intention, fulfilling in action God's essential intention for Creation. The Tzadik experiences the wish for Divine purpose consummately.

"..To love the Lord your God, to listen to His voice, and to cleave to Him.."[21]
"Cleaving to a Torah scholar is as cleaving to the Divine Shechinah"[22]

The leaders of Israel over the masses stem from the intellect of Adam's soul[23]
"In every generation there is a leader like Moses"

The soul of the Tzadik is an inclusive, general soul of the community. In Kabbalah, gematria (numerical value) has significance, because Creation is formed through Divine "speech" as in Genesis 1. The gematria of Yesod (יסוד) is 80, 8 times 10, forming reduced value of 18 (חי Life), as a tzadik is called truly alive spiritually. 80 is the value of Klal (כלל), the "community", the extension of Kol (כל), the term in Kabbalah for the sephirah of Yesod. The "Tzadik of the generation" is a "general soul" (neshama klalit) of the generation, in which each individual soul is included. Hasidic thought focuses on this parallel, and its application for each person. Through the personal connection of each soul to the tzadik, their Yechidah soul-essence becomes revealed, through the revelation of the Yechidah of the Tzadik.

The Hasidic development of the Tzadik combined the former roles of private mystic and social Maggid into communal mystical-leadership. Hasidic thought internalised the Ayin-Yesh Heavenly duality of Kabbalah into a complete paradigm for Deveikut perception of Divine Omnipresence. The Hasidic Tzadik embodied this as a channel for the Divine flow.