The Talmud recounts how Rabbi Shimon bar Yochai and his son hid in a cave for thirteen years to escape Roman persecution, emerging ultimately transformed. This narrative forms the foundational biography of the figure most associated with Lag BaOmer.
אֲזַל הוּא וּבְרֵיהּ, טְשׁוֹ בֵּי מִדְרְשָׁא. כׇּל יוֹמָא הֲוָה מַתְיָא לְהוּ דְּבֵיתְהוּ רִיפְתָּא וְכוּזָא דְמַיָּא וְכָרְכִי. כִּי תְּקֵיף גְּזֵירְתָא אֲמַר לֵיהּ לִבְרֵיהּ: נָשִׁים דַּעְתָּן קַלָּה עֲלֵיהֶן, דִילְמָא מְצַעֲרִי לַהּ וּמְגַלְּיָא לַן. אֲזַלוּ טְשׁוֹ בִּמְעָרְתָּא. אִיתְרְחִישׁ נִיסָּא אִיבְּרִי לְהוּ חָרוּבָא וְעֵינָא דְמַיָּא, וַהֲווֹ מַשְׁלְחִי מָנַיְיהוּ וַהֲווֹ יָתְבִי עַד צַוְּארַיְיהוּ בְּחָלָא. כּוּלֵּי יוֹמָא גָּרְסִי. בְּעִידָּן צַלּוֹיֵי לָבְשִׁי מִיכַּסּוּ וּמְצַלּוּ, וַהֲדַר מַשְׁלְחִי מָנַיְיהוּ כִּי הֵיכִי דְּלָא לִיבְלוּ. אִיתִּיבוּ תְּרֵיסַר שְׁנֵי בִּמְעָרְתָּא. אֲתָא אֵלִיָּהוּ וְקָם אַפִּיתְחָא דִמְעָרְתָּא, אֲמַר: מַאן לוֹדְעֵיהּ לְבַר יוֹחַי דְּמִית קֵיסָר וּבְטִיל גְּזֵירְתֵיהּ. נְפַקוּ, חֲזוֹ אִינָשֵׁי דְּקָא כָּרְבִי וְזָרְעִי, אָמְרִין: מַנִּיחִין חַיֵּי עוֹלָם וְעוֹסְקִין בְּחַיֵּי שָׁעָה. כׇּל מָקוֹם שֶׁנּוֹתְנִין עֵינֵיהֶן מִיָּד נִשְׂרָף. יָצְתָה בַּת קוֹל וְאָמְרָה לָהֶם: לְהַחֲרִיב עוֹלָמִי יְצָאתֶם?! חִיזְרוּ לִמְעָרַתְכֶם! הֲדוּר אֲזוּל אִיתִּיבוּ תְּרֵיסַר יַרְחֵי שַׁתָּא. אָמְרִי: מִשְׁפַּט רְשָׁעִים בְּגֵיהִנָּם שְׁנֵים עָשָׂר חֹדֶשׁ. יָצְתָה בַּת קוֹל וְאָמְרָה: צְאוּ מִמְּעָרַתְכֶם! נְפַקוּ. כָּל הֵיכָא דַּהֲוָה מָחֵי רַבִּי אֶלְעָזָר, הֲוָה מַסֵּי רַבִּי שִׁמְעוֹן. אָמַר לוֹ: בְּנִי, דַּי לָעוֹלָם אֲנִי וְאַתָּה.
Rabbi Shimon bar Yoḥai and his son, Rabbi Elazar, went and hid in the study hall. Every day Rabbi Shimon’s wife would bring them bread and a jug of water and they would eat. When the decree intensified, Rabbi Shimon said to his son: Women are easily impressionable and, therefore, there is room for concern lest the authorities torture her and she reveal our whereabouts. They went and they hid in a cave. A miracle occurred and a carob tree was created for them as well as a spring of water. They would remove their clothes and sit covered in sand up to their necks. They would study Torah all day in that manner. At the time of prayer, they would dress, cover themselves, and pray, and they would again remove their clothes afterward so that they would not become tattered. They sat in the cave for twelve years. Elijah the Prophet came and stood at the entrance to the cave and said: Who will inform bar Yoḥai that the emperor died and his decree has been abrogated? They emerged from the cave, and saw people who were plowing and sowing. Rabbi Shimon bar Yoḥai said: These people abandon eternal life of Torah study and engage in temporal life for their own sustenance. The Gemara relates that every place that Rabbi Shimon and his son Rabbi Elazar directed their eyes was immediately burned. A Divine Voice emerged and said to them: Did you emerge from the cave in order to destroy My world? Return to your cave. They again went and sat there for twelve months. They said: The judgment of the wicked in Gehenna lasts for twelve months. Surely their sin was atoned in that time. A Divine Voice emerged and said to them: Emerge from your cave. They emerged. Everywhere that Rabbi Elazar would strike, Rabbi Shimon would heal. Rabbi Shimon said to Rabbi Elazar: My son, you and I suffice for the entire world, as the two of us are engaged in the proper study of Torah.