[(Numbers 33:1:) "These are the stages."] A parable: to a king whose son was ill. He brought him to another place to heal him. When they were returning, his father began to recount the stages: "Here we slept; here we caught a chill; here you had pain in your head." So too the Holy One, blessed be He, said to Moses: Recount for them all the places where they provoked Me to anger. Therefore it is said, "These are the stages" (Numbers 33:1).
A Father Recounts the Stages of His Sick Son's Journey Home
Midrash Tanchuma Buber, Masei 2:1
[אלה מסעי]. משל למלך שהיה בנו חולה, הוליכו למקום אחר לרפאותו, כיון שהיו חוזרין התחיל אביו מונה את המסעות, כאן ישננו, כאן הוקרנו, כאן חששת בראשך, כך אמר הקב"ה למשה מנה להם את כל המקומות, היכן הכעיסוני, לכך נאמר אלה מסעי.