אֶת־הַכֹּ֥ל רָאִ֖יתִי בִּימֵ֣י הֶבְלִ֑י יֵ֤שׁ צַדִּיק֙ אֹבֵ֣ד בְּצִדְק֔וֹ וְיֵ֣שׁ רָשָׁ֔ע מַאֲרִ֖יךְ בְּרָעָתֽוֹ׃
אַלץ האָב איך געזען אין מײַנע נישטיקע טעג: פֿאַראַן אַ צדיק װאָס גײט אונטער אין זײַן צדיקות, און פֿאַראַן אַ רָשע װאָס איז מאריך-ימים אין זײַן שלעכטיקײט.
Sha'arei Orah
However, if people bring impurity upon themselves, heaven forbid, and become distant from HaShem’s-יהו"ה Torah and mitzvot, committing evil, injustice and violence, then HaShem’s-יהו"ה quality as the Righteous One-Tzaddik-צדיק stands up to see and observe their deeds. When He sees that people are bringing impurity upon themselves, in rejecting His Torah and mitzvot and committing injustice and violence, then His quality as the Righteous One-Tzaddik-צדיק gathers into itself and withdraws on high. Then all the conduits and drawings down of influence become stopped up and HaShem’s-יהו"ה quality of Lordship-Adona”y-אדנ"י is left like a dry and empty land, lacking all goodness. This is the matter of the verse,37Isaiah 57:1 “Because of the evil, the Righteous-Tzaddik-צדיק is gathered up.” King Solomon cried out about this and said,38Ecclesiastes 7:15 “There is a righteous man who is lost in his righteousness and there is a wicked man who continues in his wickedness.” This entire matter is hinted at in the verse,39Psalms 14:2-3 “From the heavens HaShem-יהו"ה gazed down upon mankind to see if there is a wise person who seeks God. They altogether have gone astray, they have become depraved, there are none who do good, not even one.”
Idra Zuta
King Solomon said of this, “All things have I seen in the days of my vanity; there is a just man who perishes in his righteousness…” (Kohelet 7:15). This vanity is one of seven vanities above that are called the king’s face. They are the seven Sfirot Chesed, Gvurah, Tiferet, Netzach, Hod, Yesod and Malchut. This is holy Malchut, the last of the seven vanities. When she is aroused along with her judgments, it is written, “there is a just man who perishes in his righteousness…” the reason being that justice is removed from righteousness and Malchut is left without the right side. It is therefore read, “bus sometimes ruin comes for want of justice.”