מִצְוַת עֲשֵׂה לְהִתְאַבֵּל עַל הַקְּרוֹבִים. שֶׁנֶּאֱמַר (ויקרא י יט) "וְאָכַלְתִּי חַטָּאת הַיּוֹם הַיִּיטַב בְּעֵינֵי ה'". וְאֵין אֲבֵלוּת מִן הַתּוֹרָה אֶלָּא בְּיוֹם רִאשׁוֹן בִּלְבַד שֶׁהוּא יוֹם הַמִּיתָה וְיוֹם הַקְּבוּרָה. אֲבָל שְׁאָר הַשִּׁבְעָה יָמִים אֵינוֹ דִּין תּוֹרָה. אַף עַל פִּי שֶׁנֶּאֱמַר בַּתּוֹרָה (בראשית נ י) "וַיַּעַשׂ לְאָבִיו אֵבֶל שִׁבְעַת יָמִים" נִתְּנָה תּוֹרָה וְנִתְחַדְּשָׁה הֲלָכָה. וּמשֶׁה רַבֵּנוּ תִּקֵּן לָהֶם לְיִשְׂרָאֵל שִׁבְעַת יְמֵי אֲבֵלוּת וְשִׁבְעַת יְמֵי הַמִּשְׁתֶּה:
It is a positive commandment to mourn for one's closest relatives, as it is said (Lev 10:19) "...had I eaten sin offering today would the Lord have approved." And mourning is not based on Scripture except for the first day only because it is the day of the death and the day of the funeral. But the rest of the seven days are not torah-mandated, even though it says (Gen 50:10) "...and he mourned for his father seven days." - when the Torah was given the law was renewed. And Moses our teacher established the seven days of mourning and the seven days of celebrating for Israel.
