The word gematria גִּימַטְרִיָּה can alternatively be written גִּימַטְרִיָּא. The plural is גִּימַטְרִיאוֹת. Its derivation is the same of the word geometry: Greek for the measure of the earth, γεωμετρία
The use of gematria to interpret Torah is present in the Baraita of Rabbi Eliezer ben Yose HaGelili as a established method. The dating of this baraita is a matter of debate, but the use of this method can be traced to tannaitic times, being present in Hechalot Rabbati and in Philo of Aexandria.A version of this baraita is found below. At the end, you can find the word gematria.
For more information on the baraita:
https://en.wikipedia.org/wiki/Baraita_on_the_Thirty-two_Rules
[this is still a work in progress]
(ג) משלשים ושלש מדות ההגדה נדרשת בהן. מרבוי, ממיעוט, מרבוי אחר רבוי, ממיעוט אחר מיעוט, מקל וחומר מפורש, מקל וחומ' סתם, מגזירה שוה, מבנין אב, מדרך קצרה, מדבר שהוא שנוי, מסדור שנחלק, מדבר שהוא בא ללמד ונמצא למד, מכלל שאחריו מעשה ואינו אלא פרטו שלראשון, מדבר הנתלה בקטן ממנו להשמיע את האוזן כדרך שהיא שומעת, משני כתובים המכחישין זה את זה עד שיבוא שלישי ויכריע ביניהן, מדבר מיוחד במקומו, מדבר שאינו מתפרש במקומו ומתפרש במקום אחר, מדבר שנ' במקצת ונוהג בכל, מדבר שנ' לזה והוא הדין לחבירו, מדבר שנ' לזה ואינו ענין לו אבל הוא ענין לחבירו, מדבר שהוקש לשתי מדות ואתה נותן לו כח היפה שבשתיהן, מדבר שחבירו מוכיח עליו, מדבר שהוא מוכיח לחבירו, מדבר שהוא בכלל ויצא מן הכלל ללמד על עצמו, מדבר שהוא בכלל ויצא מן הכלל ללמד על חבירו, ממשל, מרמז, מכנגד שבו, מלשון גימטריא, [מחילוף האותיות], מלשון נטריקון, ממוקדם ומאוחר שהוא בענין, ממוקדם ומאוחר שהוא בפרשיות.
(3) Thirty-three principles are required in the Haggadah. Of majority, minority, majority after majority, minority after minority, explicit leniency and stringency, implicit leniency and stringency, equal derivation, building on a foundation, a case of short reasoning, a matter subject to change, a structured order, an issue that comes to teach but is found to have been learned, a generalization followed by a specific example, an issue dependent on a small element from which the larger point is deduced in a manner perceivable by the ear as it hears, two scriptures that contradict each other until a third comes and decides between them, a unique matter in its place, a matter that is not interpreted in its place and is interpreted elsewhere, a matter that is stated partially and applied universally, a matter that is stated for one and has relevance for another, a matter that is linked to two principles, and you give it the power of the better of the two, a matter that one's fellow reproves him for, a matter that one reproves his fellow for, a matter that is part of a category but stands out from the category to teach about itself, a matter that is part of a category but stands out from the category to teach about another, a governance, an allusion, an opposition in it, from a gematria, from a letter substitution, from the language of a netrikon, early and late regarding its context, early and late regarding its divisions.
§ Rabbi Simlai taught: There were 613 mitzvot stated to Moses in the Torah, consisting of 365 prohibitions corresponding to the number of days in the solar year, and 248 positive mitzvot corresponding to the number of a person’s limbs. Rav Hamnuna said: What is the verse that alludes to this? It is written: “Moses commanded to us the Torah, an inheritance of the congregation of Jacob” (Deuteronomy 33:4). The word Torah, in terms of its numerical value [gimatriyya], is 611, the number of mitzvot that were received and taught by Moses our teacher. In addition, there are two mitzvot: “I am the Lord your God” and: “You shall have no other gods” (Exodus 20:2, 3), the first two of the Ten Commandments, that we heard from the mouth of the Almighty, for a total of 613.
Here we see the most common form of Gematria. The method is the most straight-forward one: each letter has a set value, letters are summed up, lessons are derived. In this version, the סוֹפִיּוֹת sofiot, the final letters, have the same value as their mid word counterparts. This is called מספר הפנים Mispar ha-Panim. The values of the letters follow this table:

A subset of this attributes different values for the סוֹפִיּוֹת sofiot, the letters that change their forms at the end of the word. This subset is called מספר גדול Mispar Gadol. So we have:

This simple gematria will have extensive consequences. In the example below, the three times we dip the bread in salt we are sweetening the judgments in the world due to gematria. You should know that the Nama Havay"ah is symbolic of lovingkindness.
(ב) ... הכי גרסינן ואי לאו הוי מלחא לא יכיל עלמא למסבל מרירא ור"ל שהמלח הוא היסוד. וטעם שנקרא מלח לפי שבו כמתקו ג' גבורות ע"י ג' חסדים כמ"ש הרב בכוונת המוציא כשמטבל אותו במלח יכוין לח"ם הם ג' חסדים שהם ג' הויו"ת גימטר' לח"ם וממתיקים לג' גבורות שהם מלח והם ג' הוי"ות ג"כ ואחר שנמתקו ג' גבורות ביסוד אזי נותנם למלכות וז"ש ואי לאו הוי מלחא שהוא היסוד לא יכיל עלמא למסבל מרירא. פירוש הדינים של המלכות: דעלמא קיימא ביה פירוש מלכות. ברית אלהיך ברית הוא יסוד אלהיך היא מלכות:
This is the correct version: "and if there was not salt, no one could stand the bitterness" (Zohar, Vayechi 66:666), and this is the secret that salt is Yesod. And the reason that it is called salt (מלח) it is because with it one sweetens the three constrictions through the three lovingkindness, as the Rav said that the intention at the 'hamotzi' when one dips the bread in salt is that one should have the intention of לחם lechem, which are the three lovingkindnesses, that are three times הוי"ה, with the gematria of לחם, and we sweetens the three constrictions that are מלח , which are also three times הוי"ה. And after the three constrictions were sweetened in Yesod then they are given to Malchut, and this is why the text says "and if there was not salt, no one could stand the bitterness". The explanation of the judgements of malchut: "[salt is the covenant] that the world sustains itself" (Zohar, Vayechi 66:667). The "covenant of your God" is the covenant of Yesod, and "your God" is malchut.
ועוד, הדל"ת מורה שעבוד, והה' גאולה. לפי שהדל"ת מורה התפזרות והתפשטות לכל ארבעה צדדין, מספר הד'. ולכך היה השעבוד ארבע מאות שנה, כמו שהתבאר למעלה בפרק עשירי. כי אין הפרש בין ד' ובין ת', רק שהד' מספר קטן, והת' מספר גדול. ואי אפשר שיהא השעבוד ארבע שנים, כי אין ארבע שנים חשוב שעבוד למעוט המספר, לכך היה ת' שנה השעבוד. ומפני שמספר הת' מורה שעבוד, לכך אותיות מנצפ"ך, שהם אחר הת', הם* גאולה, כי אחר שעבוד - גאולה. ולפיכך הם חמשה אותיות, שמספר חמשה מורה גאולה. וכן הה"א, שהיא גאולה, באה גם כן אחר הדל"ת, שהיא שעבוד. וכמו שברא העולם בכ"ב אותיות אלפ"א בית"א, ברא הגאולה באותיות מנצפ"ך שאחר התי"ו.
And more, the letter dalet teaches subjugation/enslavement, and the hey, redemption. This is because the dalet teaches scattering and spreading to all four sides, which is the number of the dalet. And therefore, the enslavement was 400 years, as explained above in the 10th chapter. There is no difference between dalet and tav , just the dalet is the small number, and the tav the large number. And it would not be possible for enslavement to be only 4 years, since four years are not a serious enslavement, and therefore 400 were the years of enslavement. And since the number 400 teaches enslavement, therefore the final letters מנצפ"ך, that come all after the tav, they are the redemption, since after enslavement there is redemption. And therefore they are five letters, since the number five teaches redemption. And therefore the hey, which is redemption, comes after the dalet, which is enslavement. And just as the world was created with the 22 letters of the alefbet, redemption was created with the letters מנצפ"ך, that come after tav.
והנה משה עקיבא שוים במספר קטן י"ב, כי ז"ה משה האיש (שמות לב, א). אכן מעלת משה על רבי עקיבא במספר גדול כזה. ידוע שם של יב"ק הוא מספר ג' שמות שנתגלה למשה, שם אהי"ה, שם ידו"ד לו נודע, וזה זכרי אדנ"י אלו ג' שמות יב"ק. ...
The numerical values of the names Moshe משה, and Akiva עקיבא are the same through the system of מספר קטן which is 12, because "this (זה) man Moshe" (Shemot 32:1). Therefore, the level of Moshe is higher than Akiva only in the big gematria. It is also known that the name of יב"ק Yabok is the sum of the three names revealed to Moshe, אהי"ה, הויה and אדנ"י
~ In the small gematria, the zeroes of the numbers fall, and all letters have a numerical attribution between 1 and 9. And so, in the source above dalet and tav have the same value.
משה=3+4+5=12, supported by 12 = זה
עקיבא=7+1+1+2+1=12.
Regular gematria:
משה=345
עקיבא=183
And the name of the river is the sum of those three names (21 + 26 + 65).
Here is a table to help visualize:

שפה אחת. גימטריא לשון הקדש. רבינו מהר״א מגרמיזא ז״ל וכ״כ רבינו בעל הטורים ז״ל גם שפה עם הכולל גימטריא לשון:
One language (שפה safah) - the gematria is the same as holy לשון lashon tongue. Our rabbi, teacher rabbi Eleazar MeGermiza (Eleazar of Worms, the Rokeach, 13th c. Germany) z"l and also our rabbi Ba'al HaTurim (Yaakov ben Asher, 13th-14th c. Spain) z"l pointed out that שפה safah with the word has the gematria of tongue.
Sometimes, the word itself will be counted as a "plus one". The technical phrase to indicate that is עם הכולל, im hakolel, sometimes the abbreviation עה"כ So, in the instance above, simple gematria plus the value one, for the word itself, was used to prove that the language spoken in the Tower of Bavel was Hebrew.
ועל זה אמר "ריוח והצלה יעמוד ליהודים ממקום אחר", כי ישראל מקום שלהם הוא אביהם יעקב, שהוא שורש ועיקר שלהם, שהוא האב להם, ולכך נקרא יעקב "מקום" לישראל. ומספרו של יעקב עם האותיות כמספרו של "מקום". וזה מפני שיעקב הוא שורש לעץ הנטוע, שיש לו י"ב ענפים. ...
And on this is what written "Relief and help will come to the Jews from another place" (Esther ), since Israel is their place, which is Yaakov, that is their root and essence, that is their father, and therefore Yaakov is called "place" for Israel. And the number of Yaakov, with the letters, is the number of "place". And this is because Yaakov is the root of the planted tree, and it has twelve branches. ...
~ Sometimes, the letters will be counted. In this example:
Simple gematria of יעקב:
182
Simple gematria of מקום:
186
Letters of יעקב
= 4
יעקב plus 4 = 186 = מקום.
This system can happen independently of the numbers of letters. For example:
~ Count the letters on the names of the patriarchs: אברהם יצחק יעקב
~ Count the letters on the names of the matriarchs: שרה רבקה רחל לאה
26 is the gematria of the Name י-ה-ו-ה
וכל זה מרומז בשתי תיבות מצה ומרור. סופי אותיות הר. וגם כשתחשוב מצה ומרור עם האותיות עולה כמנין חוט שער עם התיבות. ולדרכינו ניחא מאוד. שהכל בא לרמז לכת הרשעים שאם ירצו לכבוש את יצרם הרע הוא רק כחוט שער. ונמצא מה שנשחט בג' כתות והאכילה עם מצה ומרור – הכל הוא כונה אחת להזהיר לרשעים שישובו מדרכם הרעה. כנלע"ד רמז נכון.
... and all that is hinted in the two words מצה Matzah and מרור Maror. The ending is הר "mountain". And when you think, matzah and maror with the words sum the number חוט שער "hairsbreadth". And according to our way this is very good. All of it comes to hint to the evil group that if they want they can conquer their evil inclination, which is just a hairsbreadth. And we find that what was slaughtered in three parts, and eaten with matzah and maror - all of it is one intention, which is for the evil people to return from their evil ways. And according to my humble understanding, this hint is correct.
מצה = 135
מרור = 446
135 + 446 = 591 +2 = 593
חוט שער = 593
The acronym for it is עה"ת. This is also used when talking about verses in the Torah.
... והנה מילוי אותיות אלם גימטריא צדק ל"ף מד"ם והוא סוד המוחין שבמל' הנקרא צדק שהיו כלולין שם וז"ס האמנם אלם צדק תדברון ...
...And behold אלם elem, in the full value of the letters has the gematria of צדק tzedek, 110 plus 84, and this is the secret of the mind that is in Malchut, called tzedek, that was included, and this is the secret of "Do you really decree what is just?" (Psalms 58:2)...
~ Full letter gematria means summing up the letters of the name of the letters (see a basic table below). This is more complicated since there are different ways of naming some letters, for instance צ can be called צדי or צדיק; and ה can be called הה or הי; and ו has at least three possibilities (וו, ואו ,ויו) and so forth. So if you can't figure out exactly what is happening, try to see if the letters' names in the word could have been written differently.
Above is the example of the full letter gematria:
Simple gematria of אלם:
71
Simple gematria of צדק:
194
Full letter gematria of אלם:
111 + 84 + 80 = 194

... ונקדים לבאר מ"ש בפע"ח שער השבת בשם החברים כי היכ"ל מספרו נ"ר ע"פ מספר הקדמי דהיינו בא"ב מאות א' עד אות ה' שהוא אות ראשונה במילת היכ"ל עולה ט"ו. אח"כ מא' עד אות י' נ"ה וכנ"ל עד אות כ'. ע"ה וכנ"ל עד אות ל' ק"ה סך הכל עולה נ"ר ע"ש וכבר בארנו טעמו ונמוקו מ"ש האר"י ובמ"א כי נ"ר גימ' רמ"ח איברין ותרין דרועין שעולה בהם. ...
... and beforehand we need to explain what is written in the Pri Etz Chaim Shaar Shabbat in the name of the fellows, that heichal [palace] its number is ner [candle, 250] through the method of the position of the letter, that is, in the alefbet, from alef until hey which is the first letter of heichal, we get 15. And after that from alef until yud, 55 and so on, until kaf, 75, and the same until lamed, 105, the entire sum is 250, see there, and we also explained the reasons and explanations regarding what the Ariza"l wrote and in other places, since 250/candle is the gematria of 248 members of the body plus the two [love and awe] that we see completes them.
~ In this method, the letter receives the value of the regular value of the previous letters, and itself, summed up. So ה will be 15 because it is the summing up of 1 + 2 + 3 + 4 + 5. And כ will be 75 because it is 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 20.
Accordingly, the word היכל becomes 250, since it is 15 + 55 + 75 + 105.
Here is a table with the מספר הקדמי values:

וזהו סוד תרע"ו, הוא חשבון המרובע של השם המיוחד. והוא עולה כמספר כ"ו פעמים כ"ו, שכללו תרע"ו. וכשיבין המשכיל חלוקן שסודם י"ב שמות (יב' פעמים כו') מצד זה שעולין שי"ב, גם י"ד שמות (יד' פעמים כו') מצד זה שעולין שס"ד וסודם השט"ן הנולד מזה"ב. אז יבין סוד נזמי הזהב וסוד העגל הנמצא בלב ובגלגל ...
... And this is the secret of 676, which is the result of the Specific Name squared. And this is 26 x 26, that sums up 676. And when the person who understands understand that their gowns חלוק (144) the secret of the 12 names (12 times 12) from this side that they sum up 312, plus the 14 names (14 times 14) from this side, they sum up 364, and they are the secret of "the Satan" (364) that is born from gold (14). Then one will understand the secret of the gold earrings and the secret of the golden calf that is found inside the heart and in the mind ...
~ Another way of doing gematria is found above, squaring the regular gematria and finding meanings on the square numbers. 26 is the value of the simple sum of י+ה+ו+ה.
26 x 26 = 676 = 312 + 364
168 + 144 = 312
508 - 364 = 144
312/12 = 26
364/14 = 26
Adding the value of letters, words and sentences are one side of gematria. Another side is the letter substitution. There are three main ways:
1. Substituting the regular letters of a word by the letters that come before them
2. Substituting the regular letters of a word by the letters that come after them
3. Substituting the regular letters of a word by the atbash system.
Below we have examples of the first two. The sofiot are not, as a rule, substituted. Also, there are those who do not believe alef should be substituted on 1, and the same is applied to tav on 2, as the second source will make clear. We will deal with atbash in its own terms below, as it is really part of a family of codes. See the tables for reference.
ודרך רמז אפשר דהאותיות הקודמות לאותיות עין הם אותיות סטנ וזהו בן פורת מהני נגד סטן שלא יזיקהו כי העין הרע הוא מהסט"א וניצול.
And in the way of a hint, it is possible to see that the letters before of עין, eye, are סטנ , and this is "a fruitful son [ is Yosef]", one of those to whom Satan cannot harm, because the evil eye is from the other side, and he is saved from it.
ולמכיר נתתי את הגלעד ולמכיר במ"ק גי' י"ח שם אלקים בחילוף אותיות המאוחרות להשם הוא כמו כן מספר ולמכיר עה"כ ואמר ולמכיר נתתי את הגלעד מורה על אותיות הקודמין לשם אלקים והם אותיות אנדט"ם גי' ע"ד ויש עוד צירוף משם זה בחילוף אותיות המקודמות והוא "אם "גל כי אותיות המחולפות בשם אלקים כנ"ל הם אותיות לה"י כי אותיות א"ם אין מתחלפית כי אלף אין אות קודם לה ומ"ם לפני' ג"כ אות מ"ם וזהו גלעד מורה על ב' צרופים מחילוף הנ"ל ...
And to Machir I gave the Gilead region (Deut. 3:15). And "to Machir" sums 18 in the small gematria. This is the name E-lohim with the substituting with the letters that come before, and with the word, they have the same number. And he said "to Machir I gave Gilead" teaches on the letters before to the name E-lohim, and they are the letters אנדט"ם, gematria 74, and there is another refinement from this name in the substitution for the letters before, and this is "אם"גל as the letters substituted before are לה"י, since the alef has no letter before and also the mem [sofit] has before it mem, and this is Gilead, that teaches on those two refinements on the said substitution.
~ Here the term ולמכיר is summed as: 2 + 1 + 2 + 4 + 3 + 6 = 18; as the mispar katan in applied.
~ Note that in this method the sofiot are not exchanged.
~ The first substitution of E-lohim gives us במוכנ, which is 5 + 2 + 6 + 4 + 2 = 19; and so the word as a +1 is used.
~ The second substitution gives us אנדט"ם. I couldn't find a clear way to explain how the teacher got the sum 74. If you can, drop me a line.
Perhaps the most common use of this substitution is what is found in the back of a kosher mezuzah parchment. If you look closely, you will find that on the back, on the same place that
י-ה-ו-ה א-ל-הינו י-ה-ו-ה
is written, a set of letters is also written. That is every next letter of that phrase. The symbolism is possibly, according to Sofer Mordechai Pinchas (https://www.sofer.co.uk) "God in motion, i.e. a continuous presence". Get your klafim from people who know what they're doing, Mordechai Pinchas is one of them.


בני פחת מואב. הם בני יואב בן צרויה י"מ מתחלף בגימטריא אתב"ש ולמה נקרא מואב שנצח עמון ומואב. ד"א דאתי מן רות בת עגלון מלך מואב:
"The sons of Pehat Moav" (Ezra 2:6) - they are the sons of Yoav ben Tzeruyah. Mem and Yud flip by ATBaSH. And why was he called Moav? Because he vanquished Amon and Moav. Another explanation is that he came from Rut bat Eglon, the king of Moav.
ATBaSH is more properly called a code. The letters are exchanged by the reverse order of the alefbet. There are other codes that are similar, see below. But ATBaSH is the most famous, even though it does not have any specific change for the sofiot. All the codes in this section are famous enough in Talmudic times to merit their own midrash, see below, found in Shabbat 104a.
Here is the ATBaSH table.

~ How come Sa'adia Ga'on is using ATBaSH, you may ask. Well, this code is old enough that was used by the Tannaim, according to the Talmud. Check Sanhedrin 22a, below, which deals with the famous banquet in Daniel that is the origin of the expression "writing on the wall".
There are other similar codes to ATBaSH, but more obscure. One of those is ALBaM. The code is made by pairing the letters of the alefbet by the half of the order, but instead of going up and down through the entire alefbet, as ATBaSH does, it is just the half of the alefbet. The same idea of exchanging letters apply. See the table below for a more clear idea:

Another such code is אח"ס בט"ע, and it is formed by pairing the letters with their eighth counterpart, meaning, switching at every seventh letter. So 1->8; 2->9 and so on. Not so clear what happens to the Tav. Here is the table:

Another code is called אי"ק בכ"ר. The main idea is that three letters can change places, given that they belong to the same category of basic number.
The main division is by the values of tens, check the table below:

And we will explain the issue more, the book Shaarei Orah has a quote about the relationship of the sockets in the Tabernacle to the source of heavenly blessings and the need to pronounce one hundred benedictions daily, as well as the negative fallout when one fails to do so. This is what he writes: "These one hundred sockets of the beams in the Tabernacle are symbolic of the one hundred blessings which they are filled with from the great בריכה, reservoir [here undoubtedly a double entendre connected with source of ברכה, blessing, Ed]. This בריכה /reservoir is called א-ד-נ-י [i.e. the attribute called א-ד-נ-י is that source Ed.]. Hence a person must utter one hundred benedictions daily in order to attract to himself all these one hundred different blessings. Should but a single one of these blessings be missing this would result in him injuring himself and becoming blemished. In the mystical dimension this is connected 1-10-100 / 2-20-200 and it is the relationship between kohen-levi-israel, which is also the relationship between nefesh, ruach and neshamah.
Those three codes were known in Talmudc times, and maybe used enough that they merited their own midrash:
A more obscure form of gematria also attributes values to the nekudot.
The added number is the one in which we sum the letters of a word on a number or the word itself, if needed. All is according to need,
א ב עולה ג
א ב ג עולה ו
א ב ג ד עולה י
א ב ג ד ה עולה טו
אבגדהו עולה כא
אבגדהוז עולה כח
א ב ג ד ה ו ז ח עולה לו
אבגדהוזחט עולה מה
אבגדהוזחטי עולה נה
אבגדהוזחטיכ עולה עה
אבגדהוזחטיכל עולה קה
אבגדהוזחטיכלמ עולה קמה
אבגדהוזחטיכלמנ עולה קצה
אבגדהוזחטיכלמנס עולה רנה
אבגדהוזחטיכלמנסע עולה שכה
אבגדהוזחטיכלמנסעפ עולה תה
אבגדהוזחטיכלמנסעפצ עולה תצה
אבגדהוזחטיכלמנסעפצק עולה תרצה
אבגדהוזחטיכלמנסעפצקר עולה תשצה
אבגדהוזחטיכלמנסעפצקרש עולה אלף צה
אבגדהוזחטיכלמנסעפצקרשת עולה אתצ"ה
והנה בלוח זה יקל אלינו הוצאת המספר לכל המצטרך בעזר הצור וישועתו:
(ז דָּבָר אַחֵר, הַחֹדֶשׁ הַזֶּה לָכֶם, מַה כְּתִיב בַּפָּ הֶן עַם לְבָדָד יִשְׁכֹּן, מַהוּ הֶן, כָּל הָאוֹתִיּוֹת מִזְדַּוְּגִין חוּץ מִשְּׁתֵי אוֹתִיּוֹת הַלָּלוּ, כֵּיצַד א"ט הֲרֵי י, ב"ח הֲרֵי י, ג"ז הֲרֵי י, ד"ו הֲרֵי י, נִמְצָא ה לְעַצְמָהּ. וְכֵן הָאוֹת הַנ' אֵין לָהּ זוּג י"צ הֲרֵי ק, כ"פ הֲרֵי ק, ל"ע הֲרֵי ק, מ"ס הֲרֵי ק, נִמְצָא נ' לְעַצְמָהּ, אָמַר הַקָּדוֹשׁ בָּרוּךְ הוּא כְּשֵׁם שֶׁשְּׁנֵי אוֹתִיּוֹת הַלָּלוּ אֵינָן יְכוֹלִין לְהִזְדַּוֵּג עִם כָּל הָאוֹתִיּוֹת אֶלָּא לְעַצְמָן, כָּךְ יִשְׂרָאֵל אֵינָן יְכוֹלִין לְהִדָּבֵק עִם כָּל הָעוֹבְדֵי כּוֹכָבִים וּמַזָּלוֹת הַקַּדְמוֹנִים אֶלָּא לְעַצְמָן מְפֹרָשִׁים, שֶׁאֲפִלּוּ שׂוֹנֵא גּוֹזֵר עֲלֵיהֶם לְחַלֵּל הַשַּׁבָּת וּלְבַטֵּל אֶת הַמִּילָה אוֹ לַעֲבֹד עֲבוֹדַת כּוֹכָבִים, הֵן נֶהֱרָגִים וְאֵין מִתְעָרְבִים בָּהֶם, שֶׁנֶּאֱמַר (במדבר כג, ט): הֶן עָם לְבָדָד יִשְׁכֹּן וּבַגּוֹיִם לֹא יִתְחַשָּׁב. וּמָה אֲנִי עוֹשֶׂה כָּל שׂוֹנֵא וְכָל אוֹיֵב שֶׁיִּגְזֹר עֲלֵיהֶם גְּזֵרָה אֲנִי הוֹרְגוֹ, שֶׁנֶּאֱמַר (במדבר כג, כד): הֶן עָם כְּלָבִיא יָקוּם.