[Another interpretation of (Numbers 7:48): "On the seventh day, the prince of the children of Ephraim, Elishama ben Ammihud."] Rabbi Meir and Rabbi Joshua ben Korhah used to expound the names. Elishama — "my God ('Eli) he heeded (shama)," but to his mistress he did not heed. Ben Ammihud — "he was with me ('immi)," but with her he was not. And likewise Gamaliel ben Pedahzur (Numbers 7:54): Joseph said, [Gamaliel] — "God (El) recompensed (gamal) my people with good recompenses (gemulim)." Ben Pedahzur — "the Rock (Tzur) redeemed (padah) him." And who caused this for him? "The Lord rewarded me according to my righteousness; according to the cleanness of my hands he recompensed me" (Psalms 18:21). Rabbi Samuel bar Abba said: What is "the cleanness of my hands"? Like the purity (berirut) of my hands, for I was clear (barur) in the commandments. "The Lord rewarded me" — how? When a person is poor, he trusts in the Holy One, blessed be He; but when he is rich, he trusts in his wealth, and there is no fear upon him. But Joseph, when he was a slave, feared the Lord, for his mistress enticed him with words, and he said to her, "How then can I do this great wickedness and sin against God?" (Genesis 39:9). And when he became king, he increased in fear, as it is said, "I fear God" (Genesis 42:18). And when his brothers came down to him a second time, "And Joseph saw them... and slaughtered an animal and prepared (hakhen), for the men shall eat with me at noon" (Genesis 43:16). Now is it not the case that it is not the way of kings to prepare from one day for the next? Rabbi Yohanan said: It was the Sabbath, and "preparing" (hakhen) is nothing other than the Sabbath day, as it is said, "And they shall prepare what they bring" (Exodus 16:5). The Holy One, blessed be He, said to him: You kept the Sabbath before it was given. By your life, for the son of your son I will bring it about that he shall offer on the Sabbath day, as it is said, "On the seventh day, the prince of the children of Ephraim."
Why Ephraim's Prince Offered on the Sabbath Day
Midrash Tanchuma Buber, Nasso 33:1
[ד"א ביום השביעי נשיא לבני אפרים אלישמע בן עמיהוד], ר' מאיר ור' יהושע בן קרחה היו דורשין את השמות, אלישמע אלי שמע, ולאדונותו לא שמע, בן עמיהוד עמי היה אבל עמה לא היה, וכן גמליאל בן פדהצור (במדבר ז נד), אמר יוסף [גמליאל] גמל אל עמי גמולים טובים, בן פדהצור פדה אותו צור, ומי גרם לו, יגמלני ה' כצדקי, (כבורי) [כבור ידי] וגו' (תהלים יח כא), אמר ר' שמואל בר אבא מהו (כבורי) [כבור ידי], כברירות ידי, שהייתי ברור במצות, יגמלני ה', כיצד אדם כשהוא עני בוטח בהקב"ה, וכשהוא עשיר עבוטח בעשרו, ואין עליו יראה, אבל יוסף כשהיה עבד היה ירא את ה', שאדונותו משדלתו בדברים, והוא אומר לה ואיך אעשה הרעה הגדולה הזאת וחטאתי לאלהים (בראשית לט ט), וכשנעשה מלך הוסיף יראה, שנאמר את האלהים אני ירא (שם מבי ח), וכשירדו אחיו אצלו שנייה, וירא יוסף אתם וגו', וטבח טבח והכן כי אתי יאכלו האנשים בצהרים (שם מג טז), והלא אין דרך מלכים (לאכול) [להכין] מיום לחבירו, א"ר יוחנן שבת היתה, ואין הכן אלא יום השבת, שנאמר והכינו את אשר יביאו (שמות טז ה), א"ל הקב"ה אתה שמרת את השבת עד שלא ניתנה, חייך לבן בנך אני עושה שיקריב ביום השבת, שנאמר ביום השביעי נשיא לבני אפרים.