Bamidbar / Numbers 33:1
אֵלֶּה מַסְעֵי בְנֵי־יִשְׂרָאֵל אֲשֶׁר יָצְאוּ מֵאֶרֶץ מִצְרַיִם לְצִבְאֹתָם בְּיַד־מֹשֶׁה וְאַהֲרֹן׃
These are the journeys of the children of Israel, who went out of the land of Egypt by their hosts under the hand of Moshe (Moses) and Aharon (Aaron).
Pshat פְּשָׁט
Why the journeys are written
Rashi: the list shows the kindness of the Omnipresent. Of the forty-two journeys, fourteen were in the first year and eight in the last, so in thirty-eight years the people moved camp only twenty times. Rabbi Tanchuma compares it to a king who took his sick son away to be healed and on the way back recalled every place with him. Sforno: the journeys are written to show the merit of Israel, who followed the Eternal through an unsown land.
How Rashi and Sforno explain it
Remez רֶמֶז
Forty-two in the first letters
Kitzur Ba'al HaTurim: first it says "their goings out by their journeys," then the reverse, "their journeys by their goings out," to show that both the going out and the journey were by the word of the Eternal. Agra DeKala: the first letters of the words "journeys of the children" (מַסְעֵי בְנֵי) give mem and bet (מ״ב), forty-two. The journeys match the Name of forty-two letters, which helps one rise. So too "by the hand of Moshe" (בְּיַד מֹשֶׁה), and the word "and these" (וְאֵלֶּה) is also forty-two in number.
How Kitzur Ba'al HaTurim and Agra DeKala explain it
Drash דְּרָשׁ
Here we slept
Midrash Tanchuma: a king took his sick son to be healed, and on the way back named every place for him: here we slept, here we were cold, here your head ached. So the Holy One, blessed is He, told Moshe (Moses) to list all the places where the people angered Him. And more: the wilderness that received Israel will be rewarded and will bloom. If such is the reward of the wilderness, how much more of a person who receives a sage into his home.
How Midrash Tanchuma explain it
Sod סוֹד
Forty-two journeys of one life
Degel Machaneh Ephraim in the name of his grandfather, the Ba'al Shem Tov: there are forty-two journeys, and every person has them, from birth until returning to the upper world. Birth is the going out of Egypt, and then a person goes from journey to journey. Every place on the road is holy, but people can turn it bad by their deeds: so Kivrot HaTaavah became a graveyard. Therefore the first list says "by the word of the Eternal," and the second, where the journeys come first and the goings out after, does not.
How Degel Machaneh Ephraim explain it