שולחן ערוך, אבן העזר, Seder Halitzah Seder Halitzah · לו
Shulchan Arukh, Even HaEzer 315
יקח החכם המנעל בידו ויבדקנו שלא יהא שום טיט דבוק בו מבפנים (ושהוא עשוי כהלכתו:
The sage shall take the shoe in his hand and inspect it that there shall be no mud stuck on the inside -- Note: and that it is made according to halachic requirements.