אמרו שנים עשר אלף זוגים תלמידים היו לו לרבי עקיבא מגבת עד אנטיפרס וכולן מתו בפרק אחד מפני שלא נהגו כבוד זה לזה והיה העולם שמם עד שבא ר"ע אצל רבותינו שבדרום ושנאה להם ר"מ ור' יהודה ור' יוסי ורבי שמעון ורבי אלעזר בן שמוע והם הם העמידו תורה אותה שעה תנא כולם מתו מפסח ועד עצרת אמר רב חמא בר אבא ואיתימא ר' חייא בר אבין כולם מתו מיתה רעה מאי היא א"ר נחמן אסכרה.
They said by way of example that Rabbi Akiva had twelve thousand pairs of students in an area of land that stretched from Gevat to Antipatris in Judea, and they all died in one period of time, because they did not treat each other with respect. And the world was desolate of Torah until Rabbi Akiva came to our Rabbis in the South and taught his Torah to them. This second group of disciples consisted of Rabbi Meir, Rabbi Yehuda, Rabbi Yosei, Rabbi Shimon, and Rabbi Elazar ben Shamua. And these are the very ones who upheld the study of Torah at that time. Although Rabbi Akiva’s earlier students did not survive, his later disciples were able to transmit the Torah to future generations. With regard to the twelve thousand pairs of Rabbi Akiva’s students, the Gemara adds: It is taught that all of them died in the period from Passover until Shavuot. Rav Ḥama bar Abba said, and some say it was Rabbi Ḥiyya bar Avin: They all died a bad death. The Gemara inquires: What is it that is called a bad death? Rav Naḥman said: Diphtheria.
(ב) נוהגים שלא להסתפר עד ל"ג לעומר שאומרים שאז פסקו מלמות...
(2) It is customary not to cut one's hair until Lag BaOmer, since it is said that that is when they stopped dying...
(א) דברים שהאבל אסור בהם. ובו כ"ה סעיפים:
אלו דברים שהאבל אסור בהם במלאכה ברחיצה וסיכה ונעילת הסנדל ותשמיש המטה ואסור לקרות בתורה ואסור בשאלת שלום ובכביסה וחייב בעטיפת הראש ובכפיית המטה כל שבעה ואסור להניח תפילין ביום הראשון ואסור בגיהוץ ובתספורת ושמחה ואיחוי קרע כל ל' יום (וכל דברי אבלות נוהגין בין ביום בין בלילה) (בתשובת הרשב"א סימן תמ"ו):
(1) The following are the things forbidden to the mourner: he is forbidden to don laundried garments ...to cut his hair... to rejoice... And all matters pertaining to mourning rites apply both during the day and during the night.
... he is forbidden up to thirty days to go [out] for business on a distant [journey], for this involves great publicity and is similar to rejoicing, since one [ordinarily] travels in a caravan group and they rejoice much [while] on the road...