Talmud Bavli, Sanhedrin 59a
The Original Text (Hebrew/Aramaic)
אמר רבי יוחנן: עובד כוכבים שעוסק בתורה חייב מיתה, שנאמר “תורה צוה לנו משה מורשה” – לנו מורשה ולא להם.
וליחשבה גבי שבע מצוות?
למאן דאמר “מורשה” – מיגזל גזיל לה; למאן דאמר “מאורסה” – דינו כבא על נערה מאורסה, דחייב מיתה.
מיתיבי: היה ר”י אומר: מניין שאפילו עובד כוכבים ועוסק בתורה שהוא ככהן גדול? שנאמר “אשר יעשה אותם האדם וחי בהם” – כהנים לויים וישראלים לא נאמר, אלא “הדם”, הא למדת: שאפילו עובד כוכבים ועוסק בתורה הרי הוא ככהן גדול!
התם – בשבע מצוות דידהו.
English Translation
Rabbi Yoḥanan says: A gentile who engages in the study of Torah is liable to the punishment of death, as it is stated: “Moses commanded us a law [Torah], an inheritance [morasha] for the congregation of Jacob” (Deuteronomy 33:4). This implies that it is an inheritance for us, and not for them.
The Gemara asks: If so, why is this prohibition not counted among the seven Noahide laws?
The Gemara answers: According to the one who reads the word as morasha (inheritance), by studying the Torah the gentile is effectively stealing it. According to the one who reads the word as me’orasa (betrothed), the legal status of a gentile studying Torah is like one who has relations with a betrothed maiden, which is a capital offense.
The Gemara raises an objection: But didn’t Rabbi Meir say: From where is it derived that even a gentile who engages in Torah study is considered like a High Priest? As it is stated: “Which if a man [Ha-Adam] do, he shall live in them” (Leviticus 18:5). It does not say “Priests, Levites, and Israelites,” but rather “a man.” This teaches you that even a gentile who studies Torah is like a High Priest!
The Gemara reconciles: In that case (where he is praised), it is referring to his study of the seven Noahide laws [which pertain specifically to him].