סימן כו סעיף ד
בֶּן ז' קָטָן, וּבֶן ז' גָּדוֹל בַּשַׁבָּת כְּשֶׁבָּא לְבֵית הַכְּנֶסֶת, שָׁוִים בְּקַדִּישִׁים, וְאִם יֵשׁ גַּם יָאהרְצַיְיט, הוּא נִדְחֶה מֵחֲמַת הַגָּדוֹל. וְלָכֵן יֵשׁ לְהַגָּדוֹל קַדִּישׁ אֶחָד יוֹתֵר מִן הַקָּטָן, דְּהַיְנוּ הַקַּדִּישׁ שֶׁהָיָה צָרִיךְ הַקָּטָן לָתֵת לְהַיָּאהרְצַיְיט.
A minor and an adult who are observing shivah; have equal rights regarding the kaddish, when they come to the synagogue on Shabbos. A person who is observing yorzeit, is barred by the adult [from saying kaddish], and, therefore, the adult recites [in this case] one kaddish more than the minor, that is, the kaddish which the minor would have had to give to the yorzeit.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)