וַיַּנִּיחֻ֖הוּ בַּמִּשְׁמָ֑ר לִפְרֹ֥שׁ לָהֶ֖ם עַל־פִּ֥י יְהוָֽה׃ (פ)
און מע האָט אים אַרײַנגעזעצט אין װאַך, ביז מע װעט זײ באַשײדן לױט דעם מױל פֿון גאָט.
Rashi
ויניחהו AND THEY PLACED HIM [IN WARD] — him by himself — and they did not place the man who gathered sticks on the Sabbath day with him (Numbers 15:34), because both of whom happened to be (i. e. to commit an offense) at the same period, but they knew that the stick-gatherer was to be punished with the death-penalty, only it had not been explained to them by what kind of death he was to be punished — it is for this reason that it is stated in his case (Numbers 15:33) “[and they placed him in ward] because it was not explained what should be done to him”. In the case of the blasphemer, however, it states “[and they placed him in ward] that [the proper penalty] might be shown to them”; this was because they did not know whether he is at all liable to the death-penalty or not (Sifra, Emor, Section 14 5; Sanhedrin 78b).
Ibn Ezra
in the prison a portion of the campsite which had been so designated.
Chizkuni
ויניחהו במשמר, “they placed him in custody;” according to Rashi, they did not place the man who had collected kindling on the Sabbath in the same cell with him, although both incidents occurred at about the same time. If you were to ask that Rashi had interpreted the word ויצא, “he went out,” in Leviticus 24,10 by quoting Rabbi Levi who said that “he left his world,” whereas Rabbi Berechyah is quoted as saying that the word means that this blasphemer first ridiculed the legislation about the showbreads (as we already explained), something that could not have occurred until the second year when the Tabernacle was functioning, whereas the person collecting the kindling had done so on the second Sabbath, i.e. at Marah, or at the latest immediately after the giving of the Torah only 49 days after the Exodus in the first year, even before the Torah had given, so how could they possibly have been placed in the same cell as that person had long since been executed? (see Rashi on Parshat S’hlach lecha) We are therefore forced to answer that the tribes had taken up positions in the desert in accordance with the sequence in which Yaakov had blessed them, already before there had been any mention of the erecting of a Tabernacle, so that the incident with the blasphemer could have occurred much earlier than the impression given in our portion. We have explained repeatedly that the author of the Torah did not feel restrained to report events in their chronological sequence. The blasphemer ridiculed the legislation of the showbreads as soon as it was taught, though the Tabernacle had not even been built yet. [he was not driven to do so because he had been refused to put up his tent with the Danites. Ed]