Another interpretation: "The wise shall inherit glory" (Proverbs 3:35) — these are Moses and Aaron. "But fools carry away shame" (ibid.) — these are Dathan and Abiram. Why? When the manna came down for Israel, Moses said, "Let no one leave any of it over until morning" (Exodus 16:19), but they did not listen to Moses, [and certain men left some of it over until morning (Exodus 16:19-20). And who were these? They were Dathan and Abiram.] Rabbi Levi said: A garrison of worms went forth from within their tents.
Dathan and Abiram, the Manna, and the Worms of Disgrace
Midrash Tanchuma Buber, Tetzaveh 7:2
ד"א כבוד חכמים ינחלו, אלו משה ואהרן, וכסילים מרים קלון, אלו דתן ואבירם, למה בשעה שירד המן לישראל אמר משה איש אל יותר ממנו עד בוקר, ולא שמעו אל משה [ויותירו אנשים ממנו עד בקר (שמות טז יט כ), ומי היו אלו דתן ואבירם], אמר ר' לוי קלאנון (חיל) של תולעים היו יוצאים מתוך אהליהם.