It was taught: Rabbi Yehoshua says, Israel ate the manna forty days after the death of Moses. How so? On the seventh of Adar Moses died, and they ate from it the twenty-four remaining days of Adar and the sixteen of Nisan, as it is said, "And the manna ceased on the day after" (Joshua 5:12). Rabbi Elazar of Modi'in says seventy days. How so? Moses died on the seventh of Adar, and they ate from it the twenty-four remaining days of the first Adar, and the thirty days of the second Adar, for it was a leap year, and the sixteen of Nisan. Rabbi Eliezer says seventy days: Moses died on the seventh of Shevat, and they ate from it the twenty-four remaining of Shevat, the thirty of Adar, and the sixteen of Nisan, and that year was not a leap year. Rabbi Yose says fifty-four years. Israel ate the manna forty years in the lifetime of Moses and fourteen years after his death, 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, "And they ate the manna until they came to an inhabited land," rather these are the fourteen years after the death of Moses, the seven years that they conquered the land and the seven years that they divided it.
The Sages Dispute How Long the Manna Lasted After Moses
Yalkut Shimoni on Nach 15:12
תניא רבי יהושע אומר ארבעים יום אכלו ישראל את המן אחר מיתתו של משה. כיצד בשבעה באדר מת משה ואכלו ממנו ארבעה ועשרים של אדר וששה עשר של ניסן שנאמר וישבות המן ממחרת. רבי אלעזר המודעי אומר שבעים יום, כיצד מת משה בשבעה באדר ואכלו ממנו ארבעה ועשרים של אדר ראשון ושלשים של אדר שני ששנת עיבור היה וששה עשר של ניסן, ר' אליעזר אומר שבעים יום בשבעה בשבט מת משה ואכלו ממנו כ"ד של שבט ושלשים של אדר וששה עשר של ניסן ואותה שנה לא היתה מעוברת. רבי יוסי אומר נ"ד שנים אכלו ישראל את המן ארבעים שנה בחייו של משה (י) וארע עשרה שנה אחר מיתתו שנאמר ובני ישראל אכלו את המן ארבעים שנה, שאין תלמוד לומר ואת המן אכלו עד בואם אל ארץ נושבת אלא אלו ארבע עשרה שנה אחר מיתתו של משה שבעה שכבשו ושבעה שחלקו: