וְהֵ֣ן לָ֔א יְדִ֥יעַ לֶהֱוֵא־לָ֖ךְ מַלְכָּ֑א דִּ֤י לאלהיך [לֵֽאלָהָךְ֙] לָא־איתינא [אִיתַ֣נָא] פָֽלְחִ֔ין וּלְצֶ֧לֶם דַּהֲבָ֛א דִּ֥י הֲקֵ֖ימְתָּ לָ֥א נִסְגֻּֽד׃ (ס)
און אַפֿילו אַז ניט, זײ װיסן, מלך, אַז צו דײַן גאָט װעלן מיר ניט דינען, און צו דער גילדערנער געשטאַלט װאָס דו האָסט אױפֿגעשטעלט, װעלן מיר זיך ניט בוקן.
Rashi
ולא תחללו YE SHALL NOT PROFANE [MY HOLY NAME], by transgressing My commands willfully. Having regard to what is implied in the statement: You shall not profane [My holy name] (viz., that it must be hallowed), what is the meaning of ונקדשתי? But, this implies a positive act of sanctification: Abandon yourself to martyrdom and hallow My name! I might think that this command applies even to the Israelite when he is alone (i. e., when no other Israelites are present when the heathen bids him transgress a Divine command)! Scripture, however, states: בתוך בני ישראל [AND I SHALL BE SANCTIFIED] AMIDST THE CHILDREN OF ISRAEL. — And when offering oneself to martyrdom, one should offer himself with the firm determination (lit., under the condition) to die if necessary, for he who abandons himself on condition (i. e. cherishing the hope) that God will not exact the sacrifice and that a miracle will happen to save him will have no miracle wrought for him; for thus we find in the case of Chananyah, Mishael and Azariah that they did not offer themselves for martyrdom expecting a miracle, as it is said (Daniel 3:17, 18) “[And God whom we serve is able to deliver us from the burning fiery furnace and He will deliver us out of thy hand, O king]. But if not, be it known unto thee that we will not serve thy gods etc. — Whether He saves us or whether he does not save, “be it known unto thee etc.” (Sifra, Emor, Chapter 9 5)
Rabbeinu Bahya
The following Midrash spells out the advice to counter the sin of desecrating the holy Name of G’d by performing public acts of sanctifying that Name (Sifra Emor 9,4-5). The author understands the directive: “I want to be sanctified among the Children of Israel” as a call for someone to risk his life for the sanctification of the Lord’s name. I might have thought that one could have fulfilled this directive by risking his life on behalf of G’d in private; the Torah adds the words “among the Children of Israel,” to teach that this directive is aimed at performing such an act in public. When doing so one must not hope that G’d would save one but must really be prepared to die for the cause. Anyone who publicly risks his life on behalf of G’d’s name hoping thereby to become the beneficiary of a miracle by G’d will not experience such a miracle. If, however, such a person is clearly resigned to the fact that G‘d will not rescue him, a miracle is liable to be performed for him as occurred in the incident of Chananyah, Mishael, and Azaryah, all of whom were defying the threats of Nevuchadnezzar and who chose to become martyrs explaining that they did not do so in order to demonstrate G’d’s power to save them (compare Daniel 3,18). [The author had elaborated on this drawing on a Midrash in Shir Hashirim Rabbah 7,13 describing these martyrs’ previous discussion with the prophet Ezekiel. Ed.] Furthermore, our sages use this verse as proof that matters involving sanctification of G’d’s Name [not necessarily risking one’s life, but prayers such as the Kedushah, Ed.] have to have an audience of at least ten male adults. They draw a comparison between the death of the ten spies in a group described by the Torah as עדה, a “community,” i.e. the minimum number of adult males to which this term can be applied. (Compare Berachot 21). Rabbeinu Yaakov (Tosaphist) already comments on that statement in the Talmud that it is not admissible to derive such halachic rules from an example of the ten spies, i.e. “an ungodly” congregation rather than a “holy congregation.”
The principal message of that discussion in the Talmud is the word בתוך, “amongst.” Clearly, when the word is used here it means “a holy congregation.” When the word appears in connection with Joseph’s ten brothers entering Egypt (Genesis 42,5) it is the Torah’s way of hinting that these brothers at that time were also a holy congregation. [There are many Midrashim proving that the brothers were bent on rescuing Joseph during their trip, certainly a holy task, and one that involved danger to themselves as evident in the story with Benjamin during their second trip. Ed.]
The principal message of that discussion in the Talmud is the word בתוך, “amongst.” Clearly, when the word is used here it means “a holy congregation.” When the word appears in connection with Joseph’s ten brothers entering Egypt (Genesis 42,5) it is the Torah’s way of hinting that these brothers at that time were also a holy congregation. [There are many Midrashim proving that the brothers were bent on rescuing Joseph during their trip, certainly a holy task, and one that involved danger to themselves as evident in the story with Benjamin during their second trip. Ed.]