Each year, we read the parashah Bamidbar before the festival of Shavuot. The word Bamidbar means "in the desert." There is a particular connection between the desert, where the Torah was given, and the Giving of the Torah.
One explanation is that just as the desert is a land that belongs to no one, neither does the Torah belong to anyone. Every Jew has an equal portion.
Another lesson from the desert is that when the Jewish people traveled there, they had to depend entirely on Hashem for their needs: food, water, and clothing. Despite this, they did not worry and prepared themselves with great eagerness to receive the Torah.
We should learn from this that even if we sometimes feel we need things, we shouldn't worry too much or let our needs disrupt our Torah study and the observance of mitzvot. We should trust that HaShem will provide us with everything we need, just as He did for our ancestors in the desert.
Excerpted from Please tell me what the Rebbe said.