סימן קצח סעיף יד
אַחַר כָּךְ אוֹמְרִים צִדּוּק הַדִּין, הַצוּר תָּמִים פָּעֳלוֹ וְכוּ' (עַיֵּן בַּסִימָן שֶׁאַחַר זֶה סָעִיף ט). אֶחָד מִן הָאֲבֵלִים מַתְחִיל. וְאִם אֵין שָׁם אָבֵל, הַמֻּפְלָא אֲשֶׁר שָׁם מַתְחִיל. וּבַיָמִים שֶׁאֵין אוֹמְרִים בָּהֶם תַּחֲנוּן, אֵין אוֹמְרִים צִּדּוּק הַדִּין. וְלָכֵן אֵין אוֹמְרִים בְּעֶרֶב שַׁבָּת לְאַחַר חֲצוֹת הַיוֹם, וְכֵן בְּעֶרֶב יוֹם טוֹב. אֲבָל בְּעֶרֶב רֹאשׁ חֹדֶשׁ וְעֶרֶב חַנֻכָּה וְעֶרֶב פּוּרִים, אוֹמְרִים גַּם לְאַחַר חֲצוֹת הַיּוֹם. וְעַל תַּלְמִיד חָכָם אוֹמְרִים גַּם בְּלַ"ג בָּעֹמֶר, וּבַיָמִים שֶׁלְּאַחַר רֹאשׁ חֹדֶשׁ סִיוָן עַד שָׁבוּעוֹת, וּבְתִשִׁעָה בְּאָב, וּבְעֶרֶב רֹאשׁ הַשָׁנָה קֹדֶם חֲצוֹת הַיוֹם.
Afterwards, Tzidduk Haddin is recited, beginning with "Hatzur Tamim Paalo" etc. ("The Rock is perfect in His ways"). This prayer is begun by one of the mourners. If there is no mourner present, it is begun by the most distinguished person present. On days that Tachanun is not said, Tzidduk Haddin is not said. Therefore, it is not said on erev Shabbos, after midday, and not on erev Yom Tov. But on erev Rosh Chodesh, erev Chanukah, and erev Purim, it is said, even after midday. If the deceased is a Torah scholar, it is also said on Lag Be'omer, and on the days between Rosh Chodesh Sivan and Shavuos, on the ninth day of Av, and on erev Rosh Hoshana before noon.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)