"And the manna ceased on the day after" (Joshua 5:12). As long as Moses was alive, the manna came down for them. When he died, what does it say? "And the manna ceased on the day after." Yet it was not that the manna depended on his life alone, but even in his death, for from the manna they had gathered on the seventh of Adar they ate thirty-nine days, until the sixteenth of Nisan, and they offered the omer at Gilgal, as it is said, "And the children of Israel ate the manna forty years" (Exodus 16:35). Since there is no need for the verse to say "until they came to an inhabited land," what does it teach by saying "until they came"? It teaches that had the manna not ceased, they would not have wished to eat from the produce of the land. Rabbi Elazar ben Azaryah offered a parable. To what is the matter like? To a king of flesh and blood who said to his servant, "Mix me hot water." The servant said, "I have no hot water." He said to him, "Then mix me cold water."
The Manna That Ceased the Day After Moses Died
Yalkut Shimoni on Nach 15:9
וישבות המן ממחרת (יהושע ה, יב). כל זמן שהיה משה קיים היה המן יורד להם, משמת מה הוא אומר וישבות המן ממחרת, ולא שהמן היה תולה בחייו אלא אף במיתתו שמן המן שלקטו בשבעה באדר אכלו ל"ט יום עד ט"ז בניסן והקריבו את העומר בגלגל שנאמר ובני ישראל אכלו את המן ארבעים שנה וגו' שאין ת"ל עד בואם אל ארץ נושבת מה תלמוד לומר עד בואם מלמד שאילו לא פסק המן לא רצו לאכול מתבואת הארץ. רבי אלעזר בן עזריה מושלו משל למה הדבר דומה למלך בשר ודם שאמר לעבדו מזוג לי חמין א"ל אין לי חמין א"ל מזוג לי צונן.