סימן כב סעיף ה
כְּשֶׁמִּתְפַּלְּלִין בְּבֵית אָבֵל, אוֹ בְּבֵית הַמֵּת אַף עַל פִּי שֶׁאֵין שָׁם אָבֵל, אֵין אוֹמְרִים תַּחֲנוּן ז' יְמֵי אֲבֵלוּת אֲפִלּוּ בְּמִנְחָה שֶׁל יוֹם ז'. וְנוֹהֲגִין שֶׁגַּם בְּשׁוּבָם לְבֵיתָם אֵינָם אוֹמְרִים. וְאִם יֵשׁ אָבֵל בְּבֵית הַכְּנֶסֶת, אֵין הַצִּבּוּר נִגְרָרִין אַחֲרָיו, וְאוֹמְרִים תַּחֲנוּן, אֶלָּא שֶׁהָאָבֵל אֵינוֹ אוֹמֵר.
When praying in the house of a mourner or in the house of the deceased, even if there is no mourner present,4If the deceased left no mourners it is customary for ten persons to gather daily at the deceased’s home and pray. (Shulchan Aruch, Yoreh Deah 376:3). tachanun is not said during the seven days of mourning, even at minchah of the seventh day. It is customary, that even if the mourners return home they do not say Tachanun. If a mourner is present in the synagogue [during prayers] the congregation is not drawn after him and they do say tachanun, whereas, the mourner, does not.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)