To a fascinating passage from Bamidbar Rabbah 14, a Midrash (rabbinic interpretive commentary), or interpretation, on the Book of Numbers, that explores this very tension.
The passage starts with a seemingly simple verse: "On the eighth day, prince of the children of Manasseh, Gamliel son of Pedatzur" (Numbers 7:54). But the Rabbis don't just read the verse; they unpack it. They connect it to (Ecclesiastes 8:2): "I keep the king’s directive, [and in regard to the word of an oath to God]." What happens when the king – or any authority figure – tells you to do something that clashes with your values, your conscience, or even God’s law? This is where things get interesting.
The Midrash clarifies that respecting authority is crucial. After all, we read in (Deuteronomy 17:15), "You shall set a king over you" – implying that this king should command respect. And (Joshua 1:18) warns, "Any man who will disobey your directive… will be put to death!" Strong stuff. The text uses Pharaoh's words to Joseph, "I am Pharaoh," (Genesis 41:44) to illustrate this point. What does Pharaoh mean when he says, "I am Pharaoh?" According to the Midrash, Pharaoh is reminding Joseph to respect his authority, even after elevating Joseph to a position of power.
Similarly, when God says to Moses, "I am the Lord" (Exodus 6:2), the Midrash explains that God is reminding Moses that even though He has made Moses "a god to Pharaoh" (Exodus 7:1), Moses must still remember God's ultimate authority.
So, we're obligated to respect earthly authority. But is that the whole story? Absolutely not.
The verse in Ecclesiastes includes a crucial caveat: "…and in regard to the word of an oath to God." This, the Midrash emphasizes, takes precedence. The will of flesh and blood, meaning human commands, must be nullified before the will of God. We are bound by our oath to fulfill all the commandments in the Torah, as (Deuteronomy 29:11) reminds us, "To pass you into the covenant of the Lord your God and into His oath…"
It's like the classic dilemma: do you listen to your parents even if they tell you to do something wrong? (Leviticus 19:3) teaches, "Each of you shall fear his mother and his father…" But the very same verse continues, "And you shall observe My Shabbatot (the Sabbath)." So, if your father tells you to violate Shabbat, the obligation to God comes first.
What if a king threatens you? (Ecclesiastes 8:3) says, "Do not be frightened; leave his presence." The Midrash interprets "panav," presence, as referring to the king's anger. Don't be swayed by his anger into violating the Torah. Don't remain in his path, bedavar, following it blindly. Don't fear his threats of punishment. As the story of Hananya, Mishael, and Azarya in the fiery furnace (Daniel 3:15) reminds us, sometimes you have to stand up to earthly power to uphold your faith.
But what's the reward for standing firm in your beliefs? The Midrash promises that if you prioritize God's will, then when God decrees calamity upon the world, your prayers for mercy will be heard. Because you nullified the decree of flesh and blood, God will nullify His own decree.
(Ecclesiastes 8:5) says, "One who observes a mitzva [will know no evil matter]." The Midrash interprets this as measure for measure: because he did not remain in a bad situation, therefore, "he will know no evil matter."
Now, the Midrash shifts gears, offering a second interpretation of these verses, focusing on the story of Joseph in Egypt. Joseph, who never flouted Pharaoh's command, exemplifies "I keep the king’s directive." And despite his high position, he never abandoned his fear of God. This is "the word of an oath to God." He even resisted the advances of Potiphar's wife, demonstrating his commitment to holiness.
The Midrash highlights Joseph's unwavering commitment to righteousness, even when faced with temptation and threats. He fled from Potiphar's wife, leaving his garment behind, rather than succumb to sin. This act of self-control, the Midrash argues, is the key to his ultimate success.
The reward for Joseph's righteousness? He was elevated to a position of immense power in Egypt. Pharaoh himself declared, "Go to Joseph; what he says to you, you shall do" (Genesis 41:55). This, the Midrash says, is because Joseph observed the mitzvot (commandments).
The Midrash even connects Joseph's actions to the future offerings brought by the princes of Ephraim and Manasseh, his descendants, during the dedication of the altar in the Tabernacle. Because Joseph observed both "You shall not commit adultery" and "You shall not steal," his grandsons were honored in a unique way.
So what's the takeaway here? It’s a delicate balance. We must respect authority, but not blindly. Our ultimate allegiance is to God and to the principles of righteousness. And sometimes, that means standing up, like Joseph, even when it's difficult, even when it's scary. Because ultimately, as the Midrash suggests, that commitment is what truly brings reward.
“On the eighth day, prince of the children of Manasseh, Gamliel son of Pedatzur” (Numbers 7:54). “On the eighth day, prince of the children of Manasseh, Gamliel son of Pedatzur” – that is what is written: “I keep the king’s directive, [and in regard to the word of an oath to God]” (Ecclesiastes 8:2). If the king will say to you that his fear shall be upon you and you shall observe his decrees, observe his decrees. Likewise, it says: “You shall set a king over you” (Deuteronomy 17:15) – that his fear shall be upon you. And it says: “Any man who will disobey your directive, [and does not heed your words in everything that you command him, will be put to death]” (Joshua 1:18). “I” that is written here is nothing other than fear of the monarchy, just as Pharaoh said to Joseph. That is what is written: “Pharaoh said to Joseph: I am Pharaoh, and without you no man shall lift his hand…” (Genesis 41:44). What is “I am Pharaoh”? This is what Pharaoh said to Joseph: Even though I said to you: “You will be in charge of my house…” (Genesis 41:40) – that I made you king over everyone – be careful to treat me with respect and make me king over you. That is why he said: “I am Pharaoh” – in other words, that the fear of my kingship shall be upon you. Similarly, “God spoke to Moses, and He said to him: I am the Lord” (Exodus 6:2) – why was it necessary to say here: “I am the Lord”? Rather, the Holy One blessed be He said to Moses: Even though I set you as a god for Pharaoh, as the verse states: “See, I have made you a god to Pharaoh” (Exodus 7:1) be careful that my Godliness will be upon you, as I made you a god only over Pharaoh alone. That is, “I keep the king’s directive” (Ecclesiastes 8:2) – it is “I” who requires you to “keep the king’s directive” – that his fear shall be upon you. Make certain that you do not flout his commands. Is it, perhaps, even if he tells you to violate the words of the Omnipresent? The verse states: “And in regard to the word of an oath to God” (Ecclesiastes 8:2) – the verse comes to inform you that “and in regard to the word of an oath of God” will be paramount over the command of flesh and blood, as you should nullify the will of flesh and blood before the will of God and fulfill all the commandments that are in the Torah, as you entered into an oath in their regard to fulfill them, just as it says: “To pass you into the covenant of the Lord your God and into His oath…” (Deuteronomy 29:11), and it says: “[Cursed be] who will not uphold the matters of this Torah to perform them; and the entire people shall say: Amen” (Deuteronomy 27:26). Similarly, “each of you shall fear his mother and his father…” (Leviticus 19:3) – is it, perhaps, even if his father said to him: Slaughter for me and cook for me on Shabbat, that he should listen to him? The verse states: “And you shall observe My Shabbatot” (Leviticus 19:3) – all of you are obligated in My honor. Here too, “and the word of an oath to God” (Ecclesiastes 8:2) – as above the word of the king observe the word of an oath to God. “Do not be frightened; leave his presence [mipanav]; [do not remain in a bad situation, as he will do what he wills]” (Ecclesiastes 8:3). If [a king of] flesh and blood will become angry at you in order to cause you to violate the statutes of the Torah, do not be frightened by his anger and follow his counsel, just as it says: “Who has not walked in the counsel of the wicked” (Psalms 1:1). Panav is nothing other than his anger, just as it says: “And the expression on his face [anpohi] was distorted” (Daniel 3:19). That is, “leave his presence”; “do not remain in a bad situation [bedavar]” – do not remain in his path to follow it, just as it says: “And did not remain in the path of sinners” (Psalms 1:1). What is “bedavar” (Ecclesiastes 8:3)? It is that you should not fear that evil matter, that he will say to you that he will burn you, kill you, or subject you to harsh suffering if you do not fulfill his decree, and he will threaten you that there is no God in the world who will be able to rescue you from his hand. That is what is written thereafter: “As he will do what he wills” (Ecclesiastes 8:3). Just as Nebuchadnezzar said to Ḥananya, Mishael, and Azarya: “At that time you will be cast into the burning fiery furnace; who is the god who will save you from my hands?” (Daniel 3:15). “Since authority is by the king’s word, [who will say to him: What are you doing?]” (Ecclesiastes 8:4). If you devote yourself to the mitzvot to fulfill the decree of the Holy One blessed be He and to nullify the decrees of flesh and blood, what is your reward? When the Holy One blessed be He issues a decree to bring calamity to the world – as he is the King of the world and Ruler of everything, to do everything that He desires and no one can impede him: “He is of one mind, and who can respond to Him? His soul desires, and He does” (Job 23:13) – you will stand and ask for mercy regarding the decree to abrogate it. The Holy One blessed be He will show forbearance to you, and He will nullify it because you nullified the decree of flesh and blood in order to fulfill His decree. That is why it is stated: “Since authority is by the king’s word” – this is the Holy One blessed be He, when He says to bring something to the world to inform of his authority in the world, just as it says: “God caused that they would experience fear before Him” (Ecclesiastes 3:14). Know, who can impede His decree and say to Him: ‘Why are You doing so’? It is one who observes mitzvot. That is why it is stated: “Who will say to him: What are you doing?” Who can say to Him: ‘Why are You doing this to Your creations? Descend to them with the attribute of mercy’? That is one who observes His mitzvot. That is what is written: “One who observes a mitzva [will know no evil matter]” (Ecclesiastes 8:5). What is “will know no evil matter” (Ecclesiastes 8:5)? It is measure for measure; he did not remain in a bad situation, therefore, “he will know no evil matter.” “A wise man’s heart will know the time and judgment” (Ecclesiastes 8:5) – as there is a wise man who considers the consequences and reckons the loss from a mitzva against its reward and the loss from a transgression against its reward. He considers in his heart: If I transgress His mitzvot, and I have an opportunity to do what I want and there is no one who can impede me, tomorrow, the time will come when the Holy One blessed be He will execute judgment against him44Referring to himself. because he violated His Torah. Likewise it says: “The wise man’s eyes are in his head, but the fool [walks in darkness]” (Ecclesiastes 2:14). And it says: “The heart of the wise inclines to his right, [and the heart of a fool inclines to his left]” (Ecclesiastes 10:2). “A wise man’s heart will know the time and judgment” – one whose heart is wise knows that if he transgresses the mitzvot, that the time will come when the Holy One blessed be He will execute judgment against him, and he refrains from the transgression. That is what is written thereafter: “For there is a time and a judgment for every matter…” (Ecclesiastes 8:6) – regarding every situation where a person performs his will and nullifies the will of the Omnipresent, it should be known to him that he is destined to be judged. Even though retribution is not exacted from him immediately, let him not think that the Holy One blessed be He would overlook his iniquity for him, but rather, He is slow to anger and collects what is due to Him. When does He exact retribution from him? It is when the hin is filled. Likewise it says: “With the filling of his quota, he will be troubled; [the hand of all travail will come upon him]” (Job 20:22). That is why it is stated: “As the evil of man overwhelms him” (Ecclesiastes 8:6); just as He did with the generation of the Flood, as He gave them an extension but ultimately exacted retribution from them, just as it says: “The Lord saw that the wickedness of man was great on the earth…” (Genesis 6:5). What is written thereafter? “The Lord said: I will obliterate man…” (Genesis 6:7). “For he does not know what will be, [for whenever it will be, who will have told him]?” (Ecclesiastes 8:7). The verse comes to teach you that anyone who does not repent from a transgression that he committed and does not fear the Day of Judgment, when it will arrive they will not show him forbearance. Were he to come and say that he be given an extension so he could repent, they will not listen to him. That is, for whenever punishment “will be, who will have told him” so he would repent and be accepted. It is to say to you that prior to the sentence they listen to him; after the sentence they do not listen to him. That is why it is stated: “For whenever it will be, who will have told him?” “There is no man who rules the spirit [to retain the spirit, and there is no rule on the day of death, and there is no sending a proxy in war, and wickedness will not rescue its owner]” (Ecclesiastes 8:8) – because we found that the Holy One blessed be He decreed four court-imposed death penalties for performers of transgressions. That is why four matters are written here, corresponding to them, where the living lack the ability to be rescued from them after their sentence. These are: “There is no man who rules the spirit [ruaḥ] to retain the spirit” – this is death by strangulation and the like, as a person dies from it only due to breath [ruaḥ], as he has no place from which to breathe. That is, “there is no man who rules the spirit” to exhale it when the day comes that the breath will be constricted in his body. “And there is no rule on the day of death” – this is death by stoning and the like, just as it says: “You shall stone him with stones, and he will die” (Deuteronomy 13:11). “There is no sending a proxy in war” – this is death by decapitation by sword and the like, just as it says: “Go out and wage war with Amalek” (Exodus 17:9), and it is written: “Joshua weakened [Amalek and its people by sword]” (Exodus 17:13). “And wickedness will not rescue its owner” – this is death by burning and the like, just as it says: “All the criminals and all the doers of wickedness will be straw; the day that is coming will burn them…” (Malachi 3:19). These are the four court-imposed death penalties mentioned in this verse. Even though the Sanhedrin ceased and the four court-imposed death penalties were abrogated, the sentence of the four court-imposed death penalties were not abrogated, as the Holy One blessed be He judges the living to die of them with harsh punishments corresponding to them. One who incurs liability to be strangled either drowns in the river, dies of diphtheria, or is delivered into the hands of idol worshippers who strangle him. One who incurs liability to be stoned either falls off the roof, or a beast tramples him, or idol worshippers stone him. One who incurs liability to be beheaded, robbers come upon him and behead him. One who incurs liability to be burned either falls into the fire or a snake bites him. You learned that a person cannot escape the judgment of the Holy One blessed be He that He will not punish him measure for measure. That is why it is stated: “There is no man who rules the spirit….” (Ecclesiastes 8:8). Another matter: “I keep the king’s directive” (Ecclesiastes 8:2) – it is speaking of Joseph the righteous, who observed the “I” that Pharaoh had said to him, just as it says: “Pharaoh said to Joseph: I am Pharaoh, [and without you no man shall lift his hand]” (Genesis 41:44), as he never flouted his command. “And the word of an oath to God” (Ecclesiastes 8:2) – as even though he entered into that prominence, he did not throw the yoke of Heaven from upon him and he feared the Holy One blessed be He, just as it says: “[I fear] God” (Genesis 42:18). That is why “God” is stated.45According to the Etz Yosef, the midrash is explaining that this is an allusion to the verse, “And the word of an oath to God” (Ecclesiastes 8:2). He was very cautious regarding the oath, as he did not take an oath “as the Lord lives,” but rather, “as Pharaoh lives, that you will not depart from here” (Genesis 42:15). That is, “an oath.” What is “the word of [divrat]”? It is because he separated himself from lasciviousness, just as it says: “He shall not see a lascivious matter [davar] in you” (Deuteronomy 23:15). And it says: The young woman, because [al devar] she did not cry out in the city…” (Deuteronomy 22:24). Likewise it says: “His master’s wife cast her eyes upon Joseph, and she said: Lie with me” (Genesis 39:7). What is written there? “He refused, and he said to his master’s wife: Behold, my master…” (Genesis 39:8). That is why it is stated: “The word of [divrat],” just as it says: “It was, as she spoke [kedabra] to Joseph day after day, and he did not heed her…” (Genesis 39:10). “Do not be frightened; [leave] his presence” – when he entered the house to perform his labor, and the house was vacant and there was no person who could see him, just as it is written: “It was, on a certain day he went into the house to perform his labor, and there was no one [of the people of the household there in the house]” (Genesis 39:11), she came and seized his garment so that he would lie with her. Nevertheless, he was not frightened by her actions, and he went outside, just as it says: “He left his garment in her hand, fled, and went outside” (Genesis 39:12). That is why it is stated: “Do not be frightened; [leave] his presence.” He was not frightened by the house being vacant, but rather he fled and left, even though she said to him that if he would not lie with her, she would say to her husband that he sought to rape her, and her husband will kill him, and there would be no one to impede him, because he is his slave. Nevertheless, he did not allow her to fulfill her desire because of that evil matter that she threatened to do to him. That is why it says: “Do not remain in a bad situation, as God will do what He wills” (Ecclesiastes 8:3). From where do you derive that she threatened him in that manner? It is from the end of the matter. When she saw that her actions were to no avail, look at what she did: “She called to the people of her household, and spoke to them, saying.… It was, when he heard.… She placed his garment [beside her, until his master’s arrival home]. She spoke to him…[saying: The Hebrew slave whom you brought to us came to me to mock me]. It was, as I raised my voice [and cried out, that he left his garment with me, and fled outside]” (Genesis 39:14–18). “Since authority is by the king’s word…” (Ecclesiastes 8:4) – what reward did the Holy One blessed be He give him for this? He placed him in a position of authority in the land of Egypt. That is what is written: “Since [authority is] by the king’s word…,” just as it says: “Pharaoh spoke to Joseph: In my dream, behold, I am…” (Genesis 41:17). “Authority” – just as it says: “Joseph was the ruler over the land” (Genesis 42:6). “Who will say to him: What are you doing?” (Ecclesiastes 8:4), just as it says: “Go to Joseph; what he says to you, you shall do” (Genesis 41:55). Why to that extent? It is because he observed the mitzvot. That is what is written: “One who observes a mitzva will know no evil matter” (Ecclesiastes 8:5). What is “will know no evil matter”? It is this evil matter that the butler said, just as it says: “There with us was a Hebrew lad, a slave of the chief executioner…” (Genesis 41:12). He said three matters here in Joseph’s regard: “Lad” – that he was a fool, just as it says: “Folly is bound in the heart of a lad” (Proverbs 22:15); “Hebrew” – an enemy; “slave” – that he is not worthy of kingship. Nevertheless, Joseph knew no evil matter. In other words, the matter did not affect him, as he ruled. “A wise man’s heart will know the time and judgment” (Ecclesiastes 8:5) – this was Joseph, who was called wise, just as it says: “There is no one as wise and understanding as you” (Genesis 41:39). He knew that he would be held accountable had he touched Potifar’s wife; that is why he withdrew from her. That is what is written: “He did not heed her [to lie with her, to be with her]” (Genesis 39:10); “to lie with her” in this world; “to be with her” in the World to Come. Another matter: “A wise man’s heart will know the time and judgment” (Ecclesiastes 8:5) – this is the Holy One blessed be He, in whose regard it is written: “Wise of heart and mighty of power” (Job 9:4). He brought about a time to reward Joseph on the basis of measure for measure. How so? He ruled over his inclination and did not touch her; therefore, he became a ruler, just as it says: “Joseph was the ruler over the land” (Genesis 42:6). He did not heed her, just as it says: “He did not heed her” (Genesis 39:10); therefore, the Holy One blessed be He crowned him as king over Egypt in its entirety, and everyone heeded his words, just as it says: “What he says to you, you shall do” (Genesis 41:55). His mouth [piv] did not kiss [nashak] in transgression; therefore, “at your directive [pikha] my entire people will be sustained [yishak]” (Genesis 41:40). He said: “There is no one greater in this house than I…” (Genesis 39:9) in order to rebuff her; therefore, “you will be in charge of my house” (Genesis 41:40). He did not seize her, but she seized him with her hands, just as it says: “She seized him by his garment…” (Genesis 39:12); therefore, “Pharaoh removed his signet ring from upon his hand, and he placed it upon Joseph’s hand” (Genesis 41:42). He left his garment in her hand; therefore, “he dressed him in linen garments” (Genesis 41:42). He did not bend his neck toward her; therefore, “he placed a gold chain on his neck” (Genesis 41:42). He did not mount [rakhav] her; therefore, “he had him ride [vayarkev] in the second chariot that he had” (Genesis 41:43). She called the people of her household in this regard, just as it says: “She called the people of her household…” (Genesis 39:14); therefore, “they called before him: Kneel” (Genesis 41:43). He was relegated to the prison for this, just as it says: “He relegated him [vayitenehu] to the prison” (Genesis 39:20); therefore, “he appointed him [venaton oto] over the land of Egypt” (Genesis 41:43). He did not direct his glance toward her, and not toward the Egyptian women when he ruled, just as it says: “Joseph is a fruitful son, a fruitful bough alongside a spring [alei ayin]” (Genesis 49:22), as he averted his eye [she’ilem eino] from Potifar’s wife and from the Egyptian women. “Branches [banot]46Banot can also mean women. ran atop the wall [alei shur]” (Genesis 49:22). Therefore, alei shur. Rabbi Reuven said: What is alei shur? The Holy One blessed be He said: It is incumbent upon me to pay a reward for that eye. How so? The Rabbis taught that in the Temple they would eat offerings of lesser sanctity within the wall, within the wall of Jerusalem. But in Shilo, which was in the portion of Joseph, they would eat it within eyeshot.47Within eyeshot of the Tabernacle (Rambam, Mishna Zevaḥim 14:6). That is alei shur, just as it says: “The eye of one who sees me will not behold me [teshureni]” (Job 7:8). Rabbi Azarya said: The Holy One blessed be He said to Joseph: You observed the mitzva of: “You shall not commit adultery” (Exodus 20:13), which is the seventh of the Commandments, and you did not commit adultery with Potifar’s wife. And you observed the mitzva of: “You shall not steal” (Exodus 20:13), which is the eighth of the Commandments, as you did not steal Potifar’s property and you did not “steal” his wife, just as it says: “The eye of the adulterer observes the night, saying: No eye will behold [teshureni] me…” (Job 24:15). The time will come when I will repay you for them. Tomorrow, when the princes come to bring [offerings] for the dedication of the altar, the princes of your two sons, one will present his offering on the seventh day, and the second on the eighth day. And no other tribe will interpose between your two sons, just as you did not interpose48Namely, you did not differentiate between them. You observed both of them. As a reward, Benjamin did not interpose between Ephraim and Manasseh. between “you shall not commit adultery” and “you shall not steal,” as it is written: “On the seventh day, prince of the children of Ephraim.… On the eighth day, prince of the children of Manasseh…” (Numbers 7:48–54) That is why it is written: “A wise man’s heart will know the time and judgment” (Ecclesiastes 8:5).