Rabbi Yehudah HaNassi compiles the Mishna

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

עבודה זרה - תוספות דף י ב

אמר ליה א''כ לימא ליה להאי דקאי אבבא וכו'. ר' אלחנן פירש דל''ג אם כן דאי א''ל היה לו לרבי חנינא להבין שהיה מת דאם היה ישן מה גבורה יש להקיץ אדם משנתו. אמרינן במדרש חלב מטמא חלב מטהר כשנולד רבי גזרו שלא למול ואביו ואמו מלוהו שלח קיסר והביאו לרבי ואמו לפניו והחליפתו אמו באנטונינוס והניקתו עד שהביאתו לפני קיסר ומצאוהו ערל ופטרום לשלום ואמר אותו הגמון אני ראיתי שמלו את זה אלא הקב''ה עושה להם נסים בכל עת ובטלו הגזרה ואמרי' נמי בירושלמי שלסוף למד אנטונינוס תורה ונתגייר ומל עצמו

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

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

Antoninus said to Rebbe At what point is the soul given to a human? Is it from the moment of decree [that such a child will exist], or from the moment of formation? He responded: "from the moment of formation." He replied, "is it possible that a piece of meat can last for three days without salt, and yet not become rotten? Rather it must be from the moment of decree." Rebbe said: "This thing that I learned from Antoninus, and there is a supporting verse: [Job 10] Your Providence has guarded my soul."

ה"ל ההיא נקרתא דהוה עיילא מביתיה לבית רבי כל יומא הוה מייתי תרי עבדי חד קטליה אבבא דבי רבי וחד קטליה אבבא דביתיה א"ל בעידנא דאתינא לא נשכח גבר קמך

(יב) רַבֵּנוּ הַקָּדוֹשׁ חִבַּר הַמִּשְׁנָה. וּמִיְּמוֹת מֹשֶׁה וְעַד רַבֵּנוּ הַקָּדוֹשׁ, לֹא חִבְּרוּ חִבּוּר שֶׁמְּלַמְּדִין אוֹתוֹ בָּרַבִּים בְּתוֹרָה שֶׁבְּעַל פֶּה; אֵלָא בְּכָל דּוֹר וָדוֹר, רֹאשׁ בֵּית דִּין אוֹ נָבִיא שֶׁיִּהְיֶה בְּאוֹתוֹ הַדּוֹר, כּוֹתֵב לְעַצְמוֹ זִכָּרוֹן בַּשְּׁמוּעוֹת שֶׁשָּׁמַע מֵרִבּוֹתָיו, וְהוּא מְלַמֵּד עַל פֶּה בָּרַבִּים.

(12) Rabbeinu Hakadosh composed the Mishnah. From the days of Moshe until Rabbenu Hakadosh they did not compose a composition from which to teach the Oral Law in public. But in each generation the head of the Beth Din, or the prophet that lived in that generation, would write for himself reminders of that which he had heard from his teachers, and then he would teach those orally in public.

(יג) וְכֵן כָּל אֶחָד וְאֶחָד כּוֹתֵב לְעַצְמוֹ כְּפִי כּוֹחוֹ, מִבֵּאוּר הַתּוֹרָה וּמֵהִלְכּוֹתֶיהָ כְּמוֹ שֶׁשָּׁמַע, וּמִדְּבָרִים שֶׁנִּתְחַדְּשׁוּ בְּכָל דּוֹר וָדוֹר, בְּדִינִים שֶׁלֹּא לְמָדוּם מִפִּי הַשְּׁמוּעָה אֵלָא בְּמִדָּה מִשְּׁלוֹשׁ עֶשְׂרֵה מִדּוֹת וְהִסְכִּימוּ עֲלֵיהֶן בֵּית דִּין הַגָּדוֹל. וְכֵן הָיָה הַדָּבָר תָּמִיד, עַד רַבֵּנוּ הַקָּדוֹשׁ.

(13) And so, each and every one wrote down for himself according to his ability, of clarifications of the Torah and its laws as he heard, and the innovations of each generation, about laws that weren't derived from tradition, but rather from the properties of the 13 principles, and which were decided upon by the Great Court. So it always was, until Rabbenu Hakadosh.

(יד) וְהוּא קִבַּץ כָּל הַשְּׁמוּעוֹת וְכָל הַדִּינִין וְכָל הַבֵּאוּרִין וְהַפֵּרוּשִׁין שֶׁשָּׁמְעוּ מִמֹּשֶׁה רַבֵּנוּ, וְשֶׁלִּמְּדוּ בֵּית דִּין שֶׁלְּכָל דּוֹר וָדוֹר, בְּכָל הַתּוֹרָה כֻּלָּהּ; וְחִבַּר מֵהַכֹּל סֵפֶר הַמִּשְׁנָה. וְשִׁנְּנוֹ בָּרַבִּים, וְנִגְלָה לְכָל יִשְׂרָאֵל; וּכְתָבוּהוּ כֻּלָּם, וְרִבְּצוּ בְּכָל מָקוֹם, כְּדֵי שֶׁלֹּא תִשְׁתַּכַּח תּוֹרָה שֶׁבְּעַל פֶּה מִיִּשְׂרָאֵל.

(14) He collected all the teachings, all the laws, and all the explanations and commentaries that were heard from Moses, our teacher, and which were taught by the courts in each generation concerning the entire Torah. From all these, he composed the text of the Mishnah. He taught it to the Sages in public and revealed it to the Jewish people, who all wrote it down. They spread it in all places so that the Oral Law would not be forgotten by the Jewish people.

(טו) וְלָמָּה עָשָׂה רַבֵּנוּ הַקָּדוֹשׁ כָּךְ, וְלֹא הִנִּיחַ הַדָּבָר כְּמוֹת שֶׁהָיָה--לְפִי שֶׁרָאָה שֶׁהַתַּלְמִידִים מִתְמַעֲטִים וְהוֹלְכִים, וְהַצָּרוֹת מִתְחַדְּשׁוֹת וּבָאוֹת, וּמַמְלֶכֶת הָרִשְׁעָה פּוֹשֶׁטֶת בָּעוֹלָם וּמִתְגַּבֶּרֶת, וְיִשְׂרָאֵל מִתְגַּלְגְּלִים וְהוֹלְכִים לַקְּצָווֹת: חִבַּר חִבּוּר אֶחָד לִהְיוֹת בְּיַד כֻּלָּם, כְּדֵי שֶׁיִּלְמְדוּהוּ בִּמְהֵרָה וְלֹא יִשָּׁכַח; וְיָשַׁב כָּל יָמָיו הוּא וּבֵית דִּינוֹ, וְלִמַּד הַמִּשְׁנָה בָּרַבִּים.

(15) Why did Rabbenu Hakadosh make [such an innovation] instead of perpetuating the status quo? Because he saw the students becoming fewer, new difficulties constantly arising, the Roman Empire18 spreading itself throughout the world and becoming more powerful, and the Jewish people wandering and becoming dispersed to the far ends of the world. [Therefore,] he composed a single text that would be available to everyone, so that it could be studied quickly and would not be forgotten. Throughout his entire life, he and his court taught the Mishnah to the masses.

(טז) וְאֵלּוּ הֶם גְּדוֹלֵי הַחֲכָמִים שֶׁהָיוּ בְּבֵית דִּינוֹ שֶׁלְּרַבֵּנוּ הַקָּדוֹשׁ וְקִבְּלוּ מִמֶּנּוּ--שִׁמְעוֹן וְגַמְלִיאֵל בָּנָיו, וְרִבִּי אָפֵס, וְרִבִּי חֲנַנְיָה בֶּן חָמָא, וְרִבִּי חִיָּא, וְרָב, וְרִבִּי יַנַּאי, וּבַר קַפָּרָא, וּשְׁמוּאֵל, וְרִבִּי יוֹחָנָן, וְרִבִּי הוֹשַׁעְיָה. אֵלּוּ הֶם הַגְּדוֹלִים שֶׁקִּבְּלוּ מִמֶּנּוּ, וְעִמָּהֶם אֲלָפִים וּרְבָבוֹת מִשְּׁאָר הַחֲכָמִים.

(16) These are the great Sages who were part of the court of Rabbenu Hakadosh and who received the tradition from him: His sons, Shimon and Gamliel, Rabbi Effess, Rabbi Chanina ben Chama, Rabbi Chiyya, Rav, Rabbi Yannai, bar Kafra, Shemuel, Rabbi Yochanan, Rabbi Hoshaia. Thousands and myriads of other sages received the tradition from [Rabbenu Hakadosh] together with these great sages.