סימן כו סעיף יט
אִם אֵין בְּבֵית הַכְּנֶסֶת אָבֵל עַל אָבִיו וְאִמּוֹ, יֹאמַר אוֹתוֹ קַדִּישׁ מִי שֶׁאֵין לוֹ אָב וָאֵם, בְּעַד כָּל מְתֵי יִשְֹרָאֵל. וְיֵשׁ מְקוֹמוֹת שֶׁנָּהֲגוּ, שֶׁשְּׁאָר קְרוֹבִים אוֹמְרִים קַדִּישׁ עַל קְרוֹבֵיהֶם, כְּשֶׁאֵין אֲבֵלִים עַל אֲבִיהֶם וְאִמָּם. וְגַם כְּשֶׁיֵּשׁ אֲבֵלִים עַל אֲבִיהֶם וְאִמָּם, אִם יֵשׁ מִי שֶׁרוֹצֶה לוֹמַר קַדִּישׁ אַחַר אֲבִי זְקֵנוֹ, אוֹאֵם זְקֶנְתּוֹ, שֶׁמֵּתוּ בְּלֹא בָּנִים, אוֹ אַחַר בְּנוֹ, אוֹ בִּתּוֹ שֶׁמֵּתוּ בְּלֹא בָּנִים, יַנִּיחוּ לוֹ הָאֲבֵלִים לוֹמַר קַדִּישׁ אֶחָד, לְאַחַר שֶׁהֵם אָמְרוּ כָּל אֶחָד. וְיֵשׁ מְקוֹמוֹת שֶׁנָּהֲגוּ, שֶׁגַּם שְׁאָר קְרוֹבִים אוֹמְרִים קַדִּישׁ, אֲפִלּוּ בְּמָקוֹם שֶׁיֵּשׁ אֲבֵלִים עַל אָב וָאֵם, אֶלָּא שֶׁעוֹשִׂים פְּשָׁרָה בֵּינֵיהֶם, שֶׁאֵין אוֹמְרִים כָּל כָּךְ קַדִּישִׁים, כְּמוֹ הָאֲבֵלִים עַל אָב וָאֵם, וְהוֹלְכִים בְּכָל זֶה אַחַר הַמִּנְהָג, וּבִלְבַד שֶׁיְּהֵא מִנְהָג קָבוּעַ בָּעִיר.
If there is no one in the synagogue mourning the loss of a father or a mother then the [mourner's] kaddish should be recited by anyone who has neither father or mother.11Of course, this rule applies only to the mourner’s kaddish. The kaddishim which are said by the chazzan may be said by anyone who officiates. (Mishnah Berurah 132:11) This Kaddish is said for the sake of all the departed in Israel. In some communities it is the custom for relatives to say the kaddish for members of their family if there are no mourners for fathers or mothers. Even when there are mourners for fathers or mothers, if someone wishes to say the kaddish for a grandfather or a grandmother who died without leaving any sons, or for his son or daughter who died without leaving any sons, the other [mourners] should allow him to say one kaddish, after each of them have said their kaddish. There are communities that follow the custom that relatives may say kaddish [for any family member] even when there are mourners for fathers and mothers present, but they reach a compromise, that they do not say as many kaddishim as those who mourn their father or mother. In this matter we follow the prevailing custom provided the custom is firmly established in that community.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)