The Talmud
סנהדרין דף פ״הSanhedrin 85a
Amud a of Sanhedrin 85 — the first side of the page
English rendering prepared for The Gematria — not a historical translation.
Sanhedrin 85a · סנהדרין פ״ה א
ורבי שמעון האמר כל מלאכה שאינה צריכה לגופה פטור עליה
But surely Rabbi Shimon said: for any melachah she-eina tzricha le-gufah (one performed for some end other than that for which the labour itself is done) one is exempt!
בעו מיניה מרב ששת בן מהו שיעשה שליח לאביו להכותו ולקללו
They asked of Rav Sheshet: a son — what is the law as to his becoming an agent for his father to strike him or to curse him?
א"ל ואחר מי התירו אלא כבוד שמים עדיף הכא נמי כבוד שמים עדיף
He said to them: and another — did they permit it? Rather, the honour of Heaven is preferable; here too, the honour of Heaven is preferable.
מיתיבי ומה מי שמצוה להכותו מצוה שלא להכותו מי שאינו מצוה להכותו אינו דין שמצוה שלא להכותו
They raised an objection: if one whom it is a commandment to strike — it is a commandment not to strike him; one whom it is not a commandment to strike — is it not right that it is a commandment not to strike him?
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.