סימן קכ סעיף ו
בִּימֵי הַסְּפִירָה מֵתוּ תַּלְמִידֵי רַבִּי עֲקִיבָא בְּל"ג יוֹם, וְלָכֵן נוֹהֲגִין בְּיָמִים אֵלּוּ קְצָת אֲבֵלוּת, שֶׁאֵין נוֹשְׂאִין נָשִׁים וְאֵין מִסְתַּפְּרִים. וְיֵשׁ חִלּוּקֵי מִנְהָגִים בְּמִסְפַּר ל"ג יָמִים הָאֵלֶּה, יֵשׁ מְקוֹמוֹת נוֹהֲגִין שֶׁחוֹשְׁבִין אוֹתָן מִיּוֹם רִאשׁוֹן דִּסְפִירָה, וְלָכֵן אוֹסְרִין עַד ל"ג בָּעֹמֶר. אַךְ כְּשֶׁחַל רֹאשׁ חֹדֶשׁ אִיָּר בַּשַׁבָּת, דְּיֵשׁ בּוֹ שְׁתֵּי קְדֻשּׁוֹת, קְדֻשַׁת שַׁבָּת וּקְדֻשַּׁת רֹאשׁ חֹדֶשׁ, אָז מַתִּירִין לִשָּׂא, וְכֵן לְהִסְתַּפֵּר בְּעֶרֶב שַׁבָּת. וּבְיוֹם ל"ג בָּעֹמֶר, וְכֵן מִשָּׁם וָאֵילֵךְ מַתִּירִין, מִפְּנֵי שֶׁבְּיוֹם ל"ג בָּעֹמֶר פָּסְקוּ מִלָּמוּת, וְלָכֵן מַרְבִּים בּוֹ קְצָת שִׂמְחָה, וְאֵין אוֹמְרִים בּוֹ תַּחֲנוּן. וְאַף שֶׁגַּם בּוֹ בַּיּוֹם מֵתוּ קְצָת, אָמְרִינָן מִקְּצָת הַיּוֹם כְּכֻלּוֹ, וְלָכֵן אֵין לְהִסְתַּפֵּר אוֹ לִשָֹּא עַד לְאַחַר שֶׁהֵאִיר הַיּוֹם, וְלֹא מִבָּעֶרֶב. אַךְ כְּשֶׁחַל ל"ג בָּעֹמֶר בְּיוֹם רִאשׁוֹן, מִסְתַּפְרִין בְּעֶרֶב שַׁבָּת שֶׁלְּפָנָיו, לִכְבוֹד הַשַׁבָּת.
During [the first] thirty-three days of the Sefirah period (the counting of the Omer), the disciples of Rabbi Akiva perished. Therefore, it is the custom during these days to observe a partial state of mourning:10Should the need arise, it is permitted to say the berachah, שֶׁהֶתֱיָנוּ (shehechiyanu) during these days. (Ibid. 493:2) Marriages should not be performed and you should not take a haircut (or shave).11Those that are permitted to shave on Chol Hamoed, are also permitted to shave during Sefirah. (See Kitzur Shulchan Aruch 104:11) (Ibid. 493:1) There are various customs regarding (the day on which to begin) to count these thirty-three days. Some communities have the custom of counting them beginning with the first day of the Omer, and, therefore, they forbid [weddings and haircuts] until Lag ba'omer (the 33rd day of the Omer). But when Rosh Chodesh Iyar occurs on Shabbos, which has two levels of kedushah (sanctity), the kedushah of Shabbos and the kedushah of Rosh Chodesh, they permit marriages and haircuts on erev Shabbos. On Lag ba'omer and from that day on, the restrictions are permitted, because on Lag ba'omer [Rabbi Akiva's disciples] ceased to die. We, therefore, rejoice somewhat, and we do not say Tachanun on that day. Although on that very day some of them died (mourning need not be observed for a full day), for the Halachah states, a part of a day is considered as a full day; therefore, you should not take a haircut, nor should weddings be held; until after dawn (of Lag ba'omer), but not in the evening. But if Lag ba'omer occurs on Sunday, you may take a haircut on the preceding erev Shabbos, in honor of Shabbos.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)