Bamidbar1:1

וַיְדַבֵּר יְהוָה אֶל־מֹשֶׁה בְּמִדְבַּר סִינַי בְּאֹהֶל מוֹעֵד בְּאֶחָד לַחֹדֶשׁ הַשֵּׁנִי בַּשָּׁנָה הַשֵּׁנִית לְצֵאתָם מֵאֶרֶץ מִצְרַיִם לֵאמֹר׃

And the Eternal spoke to Moshe (Moses) in the wilderness of Sinai, in the Tent of Meeting, on the first day of the second month, in the second year after they came out of the land of Egypt, saying:

Bamidbar 1:1

וַיְדַבֵּר יְהוָה אֶל־מֹשֶׁה

Bamidbar / Numbers 1:1 · Sod

Bamidbar 1:1

וַיְדַבֵּר יְהוָה אֶל־מֹשֶׁה בְּמִדְבַּר סִינַי בְּאֹהֶל מוֹעֵד בְּאֶחָד לַחֹדֶשׁ הַשֵּׁנִי בַּשָּׁנָה הַשֵּׁנִית לְצֵאתָם מֵאֶרֶץ מִצְרַיִם לֵאמֹר׃

And the Eternal spoke to Moshe (Moses) in the wilderness of Sinai, in the Tent of Meeting, on the first day of the second month, in the second year after they came out of the land of Egypt, saying:

Sod סוֹד

Lamp, light and way

Before a big event, a wedding, an exam, a move, you prepare in different ways: at times you burn with zeal, at times you think calmly, at times you simply set aside everything extra. Which of these is needed most?

Sefat Emet reads fire, water and wilderness as three sides of a person. Fire is the urge to rise and cleave to the Eternal, water is the light of holiness that comes down from above, wilderness is the readiness to follow the Eternal completely. Wilderness is the main preparation for the Torah, and it is like Shabbat: Shabbat was given before the Torah, and whoever stops working merits the Torah.

How Sefat Emet explain it

Sefat Emet In the midrash: the Torah was given through three things, through fire, through water and through wilderness

Fire is a person's burning urge to rise and cleave to the Eternal. This is the level of "the commandment is a lamp": the flame of a lamp rises upward, and so through the commandments a person cleaves and joins to his root above.

Water is the illumination of holiness that comes from above. This is the level of "the Torah is light": light shines from above downward.

And wilderness is following the Eternal with all one's being. This is the level of "the way of life is rebukes that teach": to yield to the way the Eternal leads, and to His Torah. And this is the main preparation for the Torah.

This is the level of Shabbat, which was given before the Giving of the Torah. When they sinned and went out to gather the manna, it says: "How long will you refuse to keep My commandments and My teachings?" (Shemot / Exodus 16:28). For Shabbat was a preparation: through it they would be ready to receive the Torah. That is why after it is written "And the people rested on the seventh day" (Shemot / Exodus 16:30), they at once traveled from Refidim to Mount Sinai. And this is the order of the steps: "He gave us Shabbat and brought us near to Mount Sinai."

About this it is written: "And from the wilderness, Mattanah" (Bamidbar / Numbers 21:18). And the sages said: a person does not merit the Torah until he makes himself ownerless like a wilderness. And this is what is said of Shabbat: "I have a good gift," that is the Torah itself: by resting and setting aside all work, one merits the Torah.

Takeaway

The three images come from one verse: "For the commandment is a lamp, and the Torah is light, and the way of life is rebukes that teach" (Mishlei / Proverbs 6:23).
Manna is the bread from heaven in the wilderness. On Shabbat there was none, and some went out to gather it, and then came the reproof (Shemot / Exodus 16:27–28).
"He gave us Shabbat and brought us near to Mount Sinai" are lines of the song "Dayenu" ("It would have been enough for us") in the Passover Haggadah, which lists the kindnesses in order.
Mattanah (מַתָּנָה) is a place in the wilderness, but the word itself means "gift." The sages read "and from the wilderness, a gift" (Eruvin 54a).
"I have a good gift in My treasure house, and Shabbat is its name" are the words of the Eternal to Moshe (Moses) in the Talmud (Shabbat 10b).
The portion Bamidbar is usually read on the Shabbat before Shavuot, the festival of the Giving of the Torah.