Commentary for Shabbat 188:1
אף במוציא את המת לקוברו אמר רבא ומודה ר' שמעון במר לחפור בו וספר תורה לקרות בו דחייב פשיטא דאי הא נמי מלאכה שאינה צריכה לגופה היא אלא מלאכה שצריכה לגופה לרבי שמעון היכי משכחת לה מהו דתימא עד דאיכא לגופו ולגופה כגון מר לעשות לו טס ולחפור ספר תורה להגיה ולקרות בו קא משמע לן
even him who carries out a corpse for burial.<span class="x" onmousemove="('comment',' Though that is for the requirements of the dead, he is exempt, since it is not for the requirements of the living. ');"><sup>1</sup></span> Raba observed: Yet R. Simeon admits in the case of [one who carries out] a spade for digging therewith or the Scroll of the Torah to read it, that he is culpable.<span class="x" onmousemove="('comment',' Since it is for his own requirements. ');"><sup>2</sup></span>