Sefer Chasidim Siman 732
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
יזהר אדם הרוחץ את המת שלא יעזוב טנוף על בשרו. וכן המעיין בקבר המת ומשכיבו יזהר שלא יהא עפר על פניו כי יש לו בושת כי הנפשות בתאר הגופים:
Medieval Jewish mysticism, translated by Sholom Alchanan Singer. Northbrook, Ill. Whitehall Co., 1971
One who washes a dead person should take great care not to leave any dirt on him and so the one who takes care of a grave and puts him down should see to it that no earth dirt is present on a dead man's face because it may cause him embarrassment before other souls for they have a body-like appearance.