Бамидбар 5:4 Мидраш: Sifra & Bamidbar Rabbah

וַיַּֽעֲשׂוּ־כֵן֙ בְּנֵ֣י יִשְׂרָאֵ֔ל וַיְשַׁלְּח֣וּ אוֹתָ֔ם אֶל־מִח֖וּץ לַֽמַּחֲנֶ֑ה כַּאֲשֶׁ֨ר דִּבֶּ֤ר יְהוָה֙ אֶל־מֹשֶׁ֔ה כֵּ֥ן עָשׂ֖וּ בְּנֵ֥י יִשְׂרָאֵֽל׃ (פ)

И сделали так сыны Израилевы и поставили их без стана; как говорил Господь Моисею, так и сделали сыны Израилевы.

Sifra

5) (He must bring a sin-offering (Bamidbar 4:2): ["if he sin unwittingly of]) all the mitzvoth of the L–rd": and not the mitzvoth of the king and not the mitzvoth of beth-din. "of all the mitzvoth of the L–rd": and not all of the mitzvoth of the L–rd": to exclude (the bringing of a sin-offering for) "hearing the voice of an oath" (see Bamidbar 5:1), and "pronouncing with the lips" (see Bamidbar 5:4), and defilement of the sanctuary and its sacred things (see Bamidbar 5:2) (for all of which he brings a sliding-scale offering [oleh veyored]).

Sifra

3b) binyan av mishnei kethuvim (a general rule derived from two verses). viz.: The topic of the lamps (on the menorah) is not like that of sending the unclean outside (of the encampment), and the latter is not like the former. What is common to them is that they are introduced by "Tzav" ("Command") — [the lamps, (Vayikra 24:2); sending, etc., (Bamidbar 5:2)] — and apply both immediately and for future generations. [The lamps: immediately — (Bamidbar 8:3): "And Aaron did so. He kindled its lamps towards the face of the menorah, etc."; for future generations — (Vayikra 24:3): "… an eternal statute throughout your generations." Sending the unclean outside: immediately — (Bamidbar 5:4): "And the children of Israel did so, and they sent them outside the camp"; for future generations — (Bamidbar 19:21): "And it shall be for them an everlasting statute."] So, all commandments introduced by "Tzav" apply both immediately and for future generations.

Bamidbar Rabbah

“The children of Israel did so, and sent them outside the camp. As the Lord spoke to Moses, so the children of Israel did” (Numbers 5:4).
“The children of Israel did so, and sent them outside the camp” – to inform of the praiseworthiness of Israel that just as Moses said to them, so they did. “As the Lord spoke to Moses, so the children of Israel did” – Rabbi Elazar ben Rabbi Shimon says: This indicates only that the senders did not require [compulsion]. From where is it derived that those who were sent out also did not require [compulsion]? The verse states: “As the Lord spoke to Moses, so the children of Israel did” – of their own volition, and they did not require that Moses and Aaron would compel them.