סימן קצו סעיף ד
אִם הָאוֹנֵן הוּא בְּעִיר אַחֶרֶת, וּבִמְקוֹם הַמֵּת יֵשׁ גַּם כֵּן קְרוֹבִים שֶׁחַיָבִים לְהִתְאַבֵּל, אֲזַי עַל זֶה שֶׁהוּא בְּמָקוֹם אַחֵר, אֵין עָלָיו דִּין אוֹנֵן. אֲבָל אִם אֵין קְרוֹבִים בִּמְקוֹם הַמֵּת, חָל עַל זֶה דִּין אוֹנֵן.
If the onein is in another city, and there are relatives in the city where the dead lies, and they too are obligated to observe the rules of mourning, then the one who is in the other city, is not considered an onein. However if there are no relatives where the dead lies, he assumes all the laws of an onein.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)