סימן פ סעיף לח
טִיט שֶׁעַל בִּגְדּוֹ, אִם הוּא לַח, מְגָרְדוֹ בְּצִפֹּרֶן אוֹ בְּסַכִּין. אֲבָל אִם הוּא יָבֵשׁ, אָסוּר לְגָרְדוֹ, מִשּׁוּם דַּהֲוֵי כְּטוֹחֵן.
Wet mud on a garment, may be scraped off with a fingernail or a knife, but if it is dry, it is forbidden to scrape it, for that would be similar to136This act would be a rabbinic prohibition, thus it would be permitted to tell a non-Jew to do it in order to avoid the embarrassment of wearing dirty clothing [Mishnah Berurah (302: 36)—Acharonim] [Kalkeles Shabbos]. "Grinding."137This applies only when there is a clod of dirt and not just a spot of dirt [Taz]. Mishnah Berurah (301: 36) says it is forbidden to rub off a spot of dirt because this is considered cleaning.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)