While they were going, they stole themselves away one by one and two by two. When they reached the palace of Pharaoh, not even one of them was found with them, as it is said, "And afterward Moses and Aaron came" (Exodus 5:1). And where were the elders? Rather, they had gone off for themselves. The Holy One, blessed be He, said to them: What do you suppose, that I will not requite you? By your lives, when Moses and Aaron go up to receive the Torah, you will go up with them, but I will turn you back, as it is said, "And to the elders he said, Tarry here for us…" (Exodus 24:14). The Holy One, blessed be He, said to them: In this world you did not see the glory of the Torah, but in the world to come you will be honored with the Torah, as it is said, "Then the moon shall be confounded and the sun ashamed, for the LORD of Hosts shall reign on Mount Zion and in Jerusalem, and before His elders shall be glory" (Isaiah 24:23).
Why the Elders Fled Pharaoh and How God Repaid Them at Sinai
Midrash Tanchuma Buber, Shemot 21:2
עד שהיו הולכין היו מגנבים עצמם אחד אחד ושנים שנים, כיון שהגיעו לפלטין של פרעה, לא נמצא עמהן אפילו אחד מהן, שנאמר ואחר באו משה ואהרן (שמות ה א), והיכן הם הזקנים, אלא שהלכו להם, אמר להם הקב"ה מה אתם סבורים שאיני פורע לכם, חייכם כשיעלו משה ואהרן לקבל את התורה אתם עולים עמהם, ואני מחזיר אתכם, שנאמר ואל הזקנים אמר שבו לכם בזה וגו' (שם כד יד), אמר להם הקב"ה בעולם הזה לא ראיתם בכבודה של תורה, אבל לעולם הבא אתם מתכבדים בל תורה, שנאמר וחפרה הלבנה ובושה החמה כי מלך ה' צבאות בהר ציון ובירושלים ונגד זקניו כבוד (ישעיה כד לג).