Vayikra22:32

וְלֹא תְחַלְּלוּ אֶת־שֵׁם קָדְשִׁי וְנִקְדַּשְׁתִּי בְּתוֹךְ בְּנֵי יִשְׂרָאֵל אֲנִי יְהוָה מְקַדִּשְׁכֶם׃

And you shall not profane My holy Name, and I shall be sanctified among the children of Israel. I am the Eternal who sanctifies you,

Vayikra 22:32

וְלֹא תְחַלְּלוּ אֶת־שֵׁם

Vayikra / Leviticus 22:32 · Pshat

Vayikra 22:32

וְלֹא תְחַלְּלוּ אֶת־שֵׁם קָדְשִׁי וְנִקְדַּשְׁתִּי בְּתוֹךְ בְּנֵי יִשְׂרָאֵל אֲנִי יְהוָה מְקַדִּשְׁכֶם׃

And you shall not profane My holy Name, and I shall be sanctified among the children of Israel. I am the Eternal who sanctifies you,

Pshat פְּשָׁט

Not counting on a miracle

Sometimes a person is ready to stand for the truth to the end, yet deep down hopes to be rescued. Does that change anything?

Rashi: "do not profane" means do not break My words on purpose. "I shall be sanctified" means give yourself up and sanctify My Name, and not in private but among Israel. One must give oneself up ready to die, not counting on a miracle. Sforno: you see how I act, so do not profane My Name with unworthy deeds, and I will work wonders among you.

How Rashi and Sforno explain it

Rashi Do not profane

That is, do not break My words on purpose. Since it already says "do not profane," what do the words "and I shall be sanctified" teach? Give yourself up and sanctify My Name. Could it be even in private? So it says "among the children of Israel." And when a person gives himself up, let him give himself up ready to die: whoever gives himself up counting on a miracle, no miracle is done for him. So we find with Chananya (Hananiah), Mishael and Azarya (Azariah): they gave themselves up without counting on a miracle, as it says: "But if not, be it known to you, O king, that we will not serve your gods" (Daniel 3:18). Whether He saves or does not save, "be it known to you."

Sforno Do not profane My holy Name

You see how I act to bring everything to this perfection. So you, who are made holy to walk in My ways, do not profane My holy Name with flawed and shameful deeds, as it says: "And they came to the nations where they came, and they profaned My holy Name" (Yechezkel / Ezekiel 36:20).

Sforno And I shall be sanctified among the children of Israel

By working wonders with them, as I promised: "Behold, I make a covenant: before all your people I will do wonders" (Shemot / Exodus 34:10). And the reason is that "I am the Eternal who sanctifies you."

Takeaway

Chananya, Mishael and Azarya refused to bow to the golden statue of the king of Babylon and were thrown into a blazing furnace (Daniel 3).
Rashi takes the words "give yourself up and sanctify My Name" from the Sifra midrash on this verse.
The prophet Yechezkel (Ezekiel) says "they profaned My holy Name" of the people of Israel in exile (Yechezkel / Ezekiel 36:20).