למנצח מזמור לדוד. יענך ה' ביום צרה. זה שאמר הכתוב (תהלים צא טו) יקראני ואענהו. אמר הקב"ה בשעה שמגעת צרה לישראל ומבקשין אותי והן משתתפין בכבודי כבודי עמהן באותה שעה אני עונה אותם שנאמר יקראני ואענהו למה עמו אנכי בצרה. א"ר יודן [משל] לאשה שהיא עם אמה בכעס עלתה אמה למעלה. ובשעת לידתה היתה מצוחת מלמטה ואמה שומעת קולה מלמעלה וצווחת גם היא כנגדה. והיו השכנות אומרות לה מה טיביך וכי את יולדת עמה. אמרה להן בתי יולדת בצער אף על פי שהכעיסה אותי איני יכולה לסבול צווחתה ואני צווחת עמה לפי שצרת בתי שלי היא. כך כשחרב בית המקדש נתן קול בבכי ויללה בעולם שנאמר (ישעיה כב יב) ויקרא ה' אלקים צבאות ביום ההוא לבכי ולמספד. אמרו לפניו מלאכי השרת רבונו של עולם יש דברים הללו לפניך והלא כתיב (דברי הימים-א טז כז) הוד והדר לפניו וגו'. אמר להן ביתי חרב ובני מסורין בקולרין ואני מצער ומיצר ולא כך כתבתי להן (תהלים צא טו) עמו אנכי בצרה. (ישעיה נב ה) ואתה מה לי פה נאם ה'. אמר רבי יהושע הכהן תשעה פסוקין יש במזמור הזה כנגד תשעה חדשים שהאשה מתעברת בהם ומה הן אומרת דעני חייתא הוא יענה אתכם. א"ר שמעון בר אבא את מוצא שמונה עשרה מזמורים יש מראש הספר ועד הפסוק הזה. שאשרי האיש ולמה רגשו גוים חד הוא. כנגד שמונה עשרה ברכות שאדם מתפלל בכל יום אומר תתעני צלותך אחר י"ח מזמורות. אמרו לו לדוד יענך ה'. דבר אחר באיזה יום. יום שהכל מודים בו שהוא צרה לעליונים ולתחתונים שאפילו מלאכי השרת יראין ממנו. מה כתיב (ירמיה ל ו) שאלו נא וראו אם יולד זכר מדוע ראיתי כל גבר ידיו על חלציו כיולדה ונהפכו כל פנים לירקון. ואין כל פנים אלא מלאכי השרת שנאמר (יחזקאל י יד) וארבעה פנים לאחד. ואומות העכו"ם אומרים (ירמיה ל ז) הוי כי גדול היום ההוא מאין כמוהו. וישראל על ידי דוד אומרים יענך ה' ביום צרה. צרה שהיא לעליונים ולתחתונים. והקדוש ברוך הוא אומר לאומות העכו"ם בואו ודונו עם בני ישראל שנאמר (ישעיה מא כא) קרבו ריבכם יאמר ה'. והם אומרים רבונו של עולם מי עושה קומטומוריסון של בניך. והוא אומר להן אני כביכול שנאמר (תהלים סח לו) הוא נותן עז ותעצומות לעם. ושרי אומות העכו"ם אומרים רבונו של עולם וכי משוא פנים יש בדבר אלו מגלי עריות ואלו מגלי עריות. אלו שופכי דמים ואלו שופכי דמים. אלו עובדים עבודה זרה ואלו עובדין עבודה זרה. מפני מה הללו יורדין לגיהנם והללו אינן יורדים. באותה שעה נמצא סניגורן של ישראל משתתק שנאמר (דניאל יב א) ובעת ההיא יעמוד מיכאל השר הגדול העומד על בני עמך. ואין העומד אלא משתתק שנאמר (איוב לב טו) חתו ולא ענו. עוד שרצה ללמד סניגוריא על ישראל כיון שהוא משתתק אומר לו הקדוש ברוך הוא מיכאל נשתתקת ואין אתה מלמד זכות וסניגוריא על בני שאני מדבר עליהם צדקה ומושיעם שנאמר (ישעיה סג א) אני מדבר בצדקה רב להושיע. ובאיזה צדקה. רבי פנחס ור' אלעזר ורבי יוחנן. חד אמר בצדקה שעשיתם עמי וקבלתם את התורה (שאלמלא) שאלמלי] לא קבלתם את התורה הייתי מכלה אתכם. וחד אמר בשכר שעשיתם וקבלתם את התורה שאלמלא כן הייתי מחריב את העולם ומחזירו לתוהו ובוהו שנאמר (ירמיה לג כה) אם לא בריתי יומם ולילה. (דניאל יב א) ובעת ההיא ימלט עמך. בזכות מי. בזכות יוסף. מה הקב"ה עושה מביט בכולן ואין בהם כיוסף. שהרי יוסף לא שמע לאדונתו שנאמר (בראשית לט י) ולא שמע אליה. ומנין שנקראו על שם יוסף שנאמר (עמוס ה טו) אולי יחנן ה' צבאות שארית יוסף. ר' שמואל בר נחמני אמר בשביל יחסיהן שנאמר (ישעיה מג ז) כל הנקרא בשמי וגו'. רבי לוי אמר בזכות המילה. כתיב הכא (דניאל יב טו) בעת ההיא ימלט עמך. וכתיב התם (יהושע ה ב) בעת ההיא אמר ה' אל יהושע:
A Psalm of David. May the Lord answer you on a day of trouble. This is what the verse (Psalms 50:15) means: "Call upon me in the day of trouble; I will deliver you, and you shall glorify me." When Israel is in distress and they seek me out, and they honor me in that hour, I answer them, as it is said: "He will call upon me, and I will answer him" (Psalms 91:15). The analogy is made of a woman who is angry with her mother, and her mother responds by screaming at her from above. During the woman's labor pains, she hears her mother's voice from above and screams back at her, even though she is angry with her. The neighbors ask her why she is screaming when she is giving birth with her mother. She replies that even though she is angry with her, she cannot bear her mother's screams because it is her house that is in distress. Similarly, when the Temple was destroyed and gave a cry of lamentation to the world, it is written: "The Lord of Hosts called in that day for weeping and for mourning" (Isaiah 22:12). The angels said to G-d, "Master of the Universe, you have 'majesty and splendor before Him' (1 Chronicles 16:27), why are you crying?" G-d replied, "My Temple is destroyed, and my children are in captivity and pain." Thus, it is written: "With him I am in distress" (Psalms 91:15). Rabbi Joshua the Priest said there are nine verses in this psalm that correspond to the nine months of a woman's pregnancy. What does she say? "He will answer your cries" (Psalms 91:15). Rabbi Shimon bar Abba said that you can find the 18 psalms in the book, beginning with the phrase "Happy is the man," through this verse. They correspond to the 18 blessings that a person recites every day in prayer, and one should recite Psalms 91:15 after reciting these 18 psalms. They said to David, "May the Lord answer you." Another explanation is on what day? On a day that everyone acknowledges as a day of trouble for both the upper and lower worlds. And the Holy One, blessed be He, says to the nations of the world: "Come and judge with the children of Israel," as it is said (Isaiah 41:21), "Present your case, says the Lord." And they say, "Master of the Universe, who creates the chaos of your children?" And He says to them, "I am the One who gives strength and might to the people," as it is said (Psalms 68:36), "He gives power and strength to His people." And the ministers of the nations of the world say, "Master of the Universe, is there no distinction in these matters? Some reveal forbidden relationships and others reveal forbidden relationships. These spill blood, and those spill blood. These serve foreign gods, and those serve foreign gods. Why do these go down to Gehenna and those do not?" At that moment, the advocate of Israel becomes silent, as it is said (Daniel 12:1), "At that time Michael, the great prince who protects your people, will arise." And the one who stands becomes silent, as it is said (Job 32:15), "They are dismayed and no longer answer." The advocate wanted to teach the heavenly court about Israel, but when he became silent, the Holy One, blessed be He, said to him, "Michael has become silent, and you are not teaching merit and advocacy for my children. I am speaking on their behalf, for I am speaking of their righteousness and their salvation," as it is said (Isaiah 45:21), "I speak the truth; I declare what is right." And in what righteousness? Rabbi Pinchas, Rabbi Elazar, and Rabbi Yochanan said, one of them said, "In the righteousness that you did with me and received the Torah, for if not for it, I would have destroyed you," and one said, "In the reward that you did and received the Torah, for if not for it, I would have destroyed the world and returned it to chaos and emptiness," as it is said (Jeremiah 33:25), "If not for My covenant day and night." (Daniel 12:1) "And at that time shall your people escape, every one that shall be found written in the book. By whose merit? By the merit of Joseph. Why does G-d look at them all and not see Joseph? Because Joseph did not listen to his mistress, as it is said (Genesis 39:9) "How then can I do this great wickedness, and sin against G-d?" And how do we know that they are called after Joseph? As it is said (Amos 5:15) "Perhaps the Lord, the G-d of hosts, will be gracious to the remnant of Joseph." Rabbi Samuel bar Nahmani said that it is because of their relationship to him, as it is said (Isaiah 43:7) "Everyone who is called by My name." Rabbi Levi said it is because of the word [used in the text], as it is written here (Daniel 12:1) "And at that time shall your people escape" and it is written there (Joshua 5:9) "And the Lord said to Joshua: 'This day have I rolled away the reproach of Egypt from off you'"
