סימן ריט סעיף ג
הַמְמֻנֶּה מֵהַקָּהָל לִהְיוֹת קוֹרֵא בַתּוֹרָה בְבֵית הַכְּנֶסֶת בְּשַׁבָּת וְאֵרַע לוֹ אֵבֶל, לֹא יֵלֵךְ בְּשַׁבָּת שֶׁבְּתוֹךְ שִׁבְעָה לְבֵית כְּנֶסֶת זֶה. כִּי אִם יִהְיֶה שָׁם, יֵש לְהִסְתַּפֵּק אִם יִקְרָא אוֹ לֹא.
If one is officially appointed by the congregation to be the reader of the Torah in the synagogue on Shabbos, and he became a mourner on the Shabbos of the first seven days, he should not go to that synagogue; for if he is present there, it will raise the question if he should read or not.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)