"And there remained two men" (Numbers 11:26). They placed humility and lowliness upon themselves, and they said, "We are not worthy of this greatness." Therefore Scripture came to mention their names. And even so, "the spirit rested upon them, and they were among those written down" — among the elders — yet they did not go out to the Tent of Meeting. "And they prophesied in the camp" — "The quail has come up! The quail has come up!" And some say: concerning the war of Gog and Magog, as it is said, "Are you the one of whom I spoke in former days by the hand of My servants the prophets of Israel, the prophets who prophesied in those days for years?" (Ezekiel 38:17). Do not read shanim ("years") but shenayim ("two"). Who were the two who prophesied one prophecy and who were two? These are Eldad and Medad. And some say: thus they were saying, "Moses will die, and Joshua will bring them into the Land."
Eldad and Medad Prophesy in the Camp Through Their Humility
Midrash Aggadah, Numbers 11:26
וישאר שני אנשים. נתנו ענוה ושפלות בעצמם, ואמרו אין אנו ראויים לגדולה זו, לפיכך בא להזכיר שמותם, ואעפ"כ ותנח עליהם הרוח והמה בכתובים, של זקן, ולא יצאו לאהל מועד: ויתנבאו במחנה. עלה שלו עלה שלו. ויש אומרים על מלחמת גוג ומגוג, שנאמר (הלא אתה) [האתה] הוא אשר דברתי [בימים קדמונים] ביד עברי (הנביאים) [נביאי ישראל הנביאים] בימים ההם שנים (יחזקא לח יז), אל תיקרי שנים אלא שנים, מי היו שנתנבאו נבואה אחת ושהיו שנים, זה אלדד ומידד. ויש אומרים כך היו אומרים משה מת ויהושע מכניס אותם לארץ: