The Zohar · Vayeshev
זוהר, וישב ט״וZohar, Vayeshev 15
Section 15 of 25 in Vayeshev — 5 segments
Segment 1א׳
וַיַּרְא שָׁם יְהוּדָה בַּת אִישׁ כְּנַעֲנִי. וְכִי כְּנַעֲנִי הֲוָה, אֶלָּא הָא אוּקְמוּהָ חַבְרַיָּיא. וַתַּהַר וַתֵּלֶד בֵּן וַיִּקְרָא אֶת שְׁמוֹ עֵר, תְּלַת בְּנִין הֲווּ לֵיהּ לִיהוּדָה, וְלָא אִשְׁתָּאֲרוּ מִנַּיְיהוּ בַּר חַד, וְדָא הוּא שֵׁלָה.
AND JUDAH SAW THERE A DAUGHTER OF A CERTAIN CANAANITE. The term Canaanite has been explained by the Companions. AND SHE CONCEIVED, AND BORE A SON; AND HE CALLED HIS NAME ER. Judah had three sons, and the only one who survived was Shelah.
Segment 2ב׳
רִבִּי אֶלְעָזָר וְרִבִּי יוֹסֵי וְרִבִּי חִיָּיא הֲווּ אָזְלֵי בְּאָרְחָא. אָמַר רִבִּי יוֹסֵי לְרִבִּי אֶלְעָזָר, אַמַּאי כְּתִיב בִּבְנוֹי דִּיהוּדָה, בְּקַדְמָאָה וַיִּקְרָא אֶת שְׁמוֹ עֵר, וּבִתְרֵין אָחֳרָנִין כְּתִיב וַתִּקְרָא אֶת שְׁמוֹ אוֹנָן, וַתִּקְרָא אֶת שְׁמוֹ שֵׁלָה.
R. Eleazar and R. Jose and R. Hiya were once walking together. Said R. Jose to R. Eleazar: ‘Why is it that of the first son of Judah it is written: “and he called his name Er”, whereas of the other two it is written: “and she called his name Onan”, “and she called his name Shelah”?’
Segment 3ג׳
אָמַר לֵיהּ תָּא חֲזֵי, הַאי פָּרְשָׁתָא רָזָא עִלָּאָה אִיהוּ, וְכֹלָּא אִיהוּ כְּדְקָא חָזֵי. וַיֵּרֶד יְהוּדָה מֵאֵת אֶחָיו, דְּהָא אִתְכַּסְיָא סִיהֲרָא, וְנָחֲתַת מִדַּרְגָּא דְּתִקֻּנָּא לְגוֹ דַּרְגָּא אוֹחֲרָא, דְּאִתְחַבַּר בֵּיהּ חִוְּיָא, כְּמָה דְאַתְּ אָמֵר וַיֵּט עַד אִישׁ עֲדֻלָּמִי וּשְׁמוֹ חִירָה.
R. Eleazar replied: ‘There is a deep mystic allusion in these sentences, which explains all. Thus Judah going down from his brethren symbolizes the moon becoming obscured and descending from the perfected grade to another grade to which the serpent becomes associated, as is indicated in the statement: “and he turned into a certain Adullamite, whose name was Hirah”.’
Zohar — Vocalized Zohar, Israel 2013, via Sefaria
English: The Zohar — Soncino Press, London 1933 (public domain)