וכבר היה רבי טרפון וזקנים מסובין בעלית בית נתזה בלוד נשאלה שאילה זו בפניהם תלמוד גדול או מעשה גדול נענה רבי טרפון ואמר מעשה גדול נענה ר"ע ואמר תלמוד גדול נענו כולם ואמרו תלמוד גדול שהתלמוד מביא לידי מעשה
In connection to the mishna’s statement about the importance of Torah study, the Gemara relates the following incident: And there already was an incident in which Rabbi Tarfon and the Elders were reclining in the loft of the house of Nit’za in Lod, when this question was asked of them: Is study greater or is action greater? Rabbi Tarfon answered and said: Action is greater. Rabbi Akiva answered and said: Study is greater. Everyone answered and said: Study is greater, but not as an independent value; rather, it is greater as study leads to action.

תני ר' שמעון בן יוחי עקיבה ר' היה דורש (במדבר כ״ד:י״ז) דרך כוכב מיעקב דרך כוזבא מיעקב. ר' עקיבה כד הוה חמי בר כוזבה הוה אמר דין הוא מלכא משיחא א"ל ר' יוחנן בן תורתא עקיבה יעלו עשבים בלחייך ועדיין בן דוד לא יבא. א

Rabbi Shimon Bar Yochai said: My teacher, Rabbi Akiva, would expound on the verse "A Star has risen from Jacob." When Rabbi Akiva would see Bar Kusba (Bar Kochba) he would say, 'that is the King the Messiah.' Rabbi Yochanan ben Torta said to him: Akiva! Grass will grow on your cheeks and the son of David will not yet have come! .

תנו רבנן פעם אחת גזרה מלכות הרשעה שלא יעסקו ישראל בתורה בא פפוס בן יהודה ומצאו לרבי עקיבא שהיה מקהיל קהלות ברבים ועוסק בתורה אמר ליה עקיבא אי אתה מתירא מפני מלכות אמר לו אמשול לך משל למה הדבר דומה לשועל שהיה מהלך על גב הנהר וראה דגים שהיו מתקבצים ממקום למקום אמר להם מפני מה אתם בורחים אמרו לו מפני רשתות שמביאין עלינו בני אדם אמר להם רצונכם שתעלו ליבשה ונדור אני ואתם כשם שדרו אבותי עם אבותיכם אמרו לו אתה הוא שאומרים עליך פקח שבחיות לא פקח אתה אלא טפש אתה ומה במקום חיותנו אנו מתיראין במקום מיתתנו על אחת כמה וכמה אף אנחנו עכשיו שאנו יושבים ועוסקים בתורה שכתוב בה (דברים ל, כ) כי הוא חייך ואורך ימיך כך אם אנו הולכים ומבטלים ממנה עאכ"ו אמרו לא היו ימים מועטים עד שתפסוהו לר"ע וחבשוהו בבית האסורים ותפסו לפפוס בן יהודה וחבשוהו אצלו אמר לו פפוס מי הביאך לכאן אמר ליה אשריך רבי עקיבא שנתפסת על דברי תורה אוי לו לפפוס שנתפס על דברים בטלים

The Sages taught: One time, after the bar Kokheva rebellion, the evil empire of Rome decreed that Israel may not engage in the study and practice of Torah. Pappos ben Yehuda came and found Rabbi Akiva, who was convening assemblies in public and engaging in Torah study. Pappos said to him: Akiva, are you not afraid of the empire? Rabbi Akiva answered him: I will relate a parable. To what can this be compared? It is like a fox walking along a riverbank when he sees fish gathering and fleeing from place to place.
The fox said to them: From what are you fleeing?
They said to him: We are fleeing from the nets that people cast upon us.
He said to them: Do you wish to come up onto dry land, and we will reside together just as my ancestors resided with your ancestors?
The fish said to him: You are the one of whom they say, he is the cleverest of animals? You are not clever; you are a fool. If we are afraid in the water, our natural habitat which gives us life, then in a habitat that causes our death, all the more so.
The moral is: So too, we Jews, now that we sit and engage in Torah study, about which it is written: “For that is your life, and the length of your days” (Deuteronomy 30:20), we fear the empire to this extent; if we proceed to sit idle from its study, as its abandonment is the habitat that causes our death, all the more so will we fear the empire. The Sages said: Not a few days passed until they seized Rabbi Akiva and incarcerated him in prison, and seized Pappos ben Yehuda and incarcerated him alongside him. Rabbi Akiva said to him: Pappos, who brought you here? Pappos replied: Happy are you, Rabbi Akiva, for you were arrested on the charge of engaging in Torah study. Woe unto Pappos who was seized on the charge of engaging in idle matters.

בשעה שהוציאו את רבי עקיבא להריגה זמן קריאת שמע היה והיו סורקים את בשרו במסרקות של ברזל והיה מקבל עליו עול מלכות שמים אמרו לו תלמידיו רבינו עד כאן אמר להם כל ימי הייתי מצטער על פסוק זה בכל נפשך אפילו נוטל את נשמתך אמרתי מתי יבא לידי ואקיימנו ועכשיו שבא לידי לא אקיימנו היה מאריך באחד עד שיצתה נשמתו באחד יצתה בת קול ואמרה אשריך רבי עקיבא שיצאה נשמתך באחד אמרו מלאכי השרת לפני הקדוש ברוך הוא זו תורה וזו שכרה ממתים ידך ה׳ ממתים וגו׳ אמר להם חלקם בחיים יצתה בת קול ואמרה אשריך רבי עקיבא שאתה מזומן לחיי העולם הבא:

The Gemara relates: When they took Rabbi Akiva out to be executed, it was time for the recitation of Shema. And they were raking his flesh with iron combs, and he was reciting Shema, thereby accepting upon himself the yoke of Heaven. His students said to him: Our teacher, even now, as you suffer, you recite Shema? He said to them: All my days I have been troubled by the verse: With all your soul, meaning: Even if God takes your soul. I said to myself: When will the opportunity be afforded me to fulfill this verse? Now that it has been afforded me, shall I not fulfill it? He prolonged his uttering of the word: One, until his soul left his body as he uttered his final word: One. A voice descended from heaven and said: Happy are you, Rabbi Akiva, that your soul left your body as you uttered: One. The ministering angels said before the Holy One, Blessed be He: This is Torah and this its reward? As it is stated: “From death, by Your hand, O Lord, from death of the world” (Psalms 17:14); Your hand, God, kills and does not save. God said the end of the verse to the ministering angels: “Whose portion is in this life.” And then a Divine Voice emerged and said: Happy are you, Rabbi Akiva, as you are destined for life in the World-to-Come, as your portion is already in eternal life.

בשעה שעלה משה למרום מצאו להקב"ה שיושב וקושר כתרים לאותיות אמר לפניו רבש"ע מי מעכב על ידך אמר לו אדם אחד יש שעתיד להיות בסוף כמה דורות ועקיבא בן יוסף שמו שעתיד לדרוש על כל קוץ וקוץ תילין תילין של הלכות אמר לפניו רבש"ע הראהו לי אמר לו חזור לאחורך הלך וישב בסוף שמונה שורות ולא היה יודע מה הן אומרים תשש כחו כיון שהגיע לדבר אחד אמרו לו תלמידיו רבי מנין לך אמר להן הלכה למשה מסיני נתיישבה דעתו חזר ובא לפני הקב"ה אמר לפניו רבונו של עולם יש לך אדם כזה ואתה נותן תורה ע"י אמר לו שתוק כך עלה במחשבה לפני אמר לפניו רבונו של עולם הראיתני תורתו הראני שכרו אמר לו חזור [לאחורך] חזר לאחוריו ראה ששוקלין בשרו במקולין אמר לפניו רבש"ע זו תורה וזו שכרה א"ל שתוק כך עלה במחשבה לפני

When Moshe ascended to the heavens, he found the Holy One, Blessed be He, sitting and attaching crowns to the letters.

He said before Him, "Master of the Universe! Who is staying your hand?" He said to him, "There is one man man who will exist after many generations, and Akiva the son of Yosef is his name, who will in the future expound on every crown and crown piles and piles of laws."

He said before Him, "Master of the Universe! Show him to me." He said to him, "Turn backwards." He went and sat at the end of eight rows [of students in Rabbi Akiva's Beit Midrash], and he did not know what they were talking [about]. He got upset.

When Akiva said something, his students said to him, "Our teacher, from where do you learn this?" He said to them, "It is a law taught to Moshe at Sinai." He calmed down.

He returned and came before the Holy One, Blessed be He, and said before Him, "Master of the Universe! You have a man like this, and You are giving the Torah through me?" He said to Him, "Be silent. This is what I have decided."

He said before Him, "Master of the Universe! You have shown me his Torah; show me his reward." He said to him, "Turn backwards." He turned backwards, and saw that they were weighing out his flesh at the market. He said before Him, "Master of the Universe! Such Torah, and such reward!" He said to him, "Be silent. This is what I've decided."