לדוד מזמור חסד ומשפט אשירה. זה שאמר הכתוב (ישעיה ה טז) ויגבה יי' צבאות במשפט. אם במשפט ויגבה יי' צבאות במשפט. אם בצדקה האל הקדוש נקדש בצדקה. א"ר הונא בשם ר' אחא אם בחסד אשירה. אם במשפט אשירה. לך יי' אזמרה. אמר ר' יהודה בר שילא (איוב א כא) יי' נתן ויי' לקח. בין לקח בין נתן יהי שם יי' מבורך. בין כך ובין כך לך יי' אזמרה. אמר ר' ברכיה בשם רבי לוי (תהלים צב ט) אתה מרום לעולם יי'. לעולם ידך מן עליתא. על הטובה ברוך הטוב והמטיב. ועל הרעה אומר ברוך דיין האמת. אמר רבי תנחומא ברבי יודן כתוב אחד אומר (שם נו יא) באלקים אהלל דבר. וכתוב אחד אומר (שם) ביי' אהלל דבר. אם בא עלי בדין אהלל דבר. אם בא עלי במדת רחמים אהלל דבר. בין כך ובין כך אהלל דבר. רבנן אמרי (שם קטז ג-ד) צרה ויגון אמצא ובשם יי' אקרא. כוס ישועות אשא ובשם יי' אקרא. בין כך ובין כך לך יי' (אזמרה) אקרא:
I will sing of kindness and justice to David. As it is written (Isaiah 5:16), "And the Lord of hosts will be exalted in justice." If in justice, then the Lord of hosts will be exalted in justice. If in righteousness, the Holy G-d will be sanctified in righteousness. Rabbi Huna said in the name of Rabbi Acha, "If in kindness, I will sing. If in justice, I will sing. To you, Lord, I will sing praises." Rabbi Yehuda bar Shila said (Job 1:21), "The Lord gave, and the Lord has taken away." Whether He gives or takes, blessed be the name of the Lord. In any case, to you, Lord, I will sing praises. Rabbi Berechiah said in the name of Rabbi Levi (Psalm 92:9), "You are exalted, Lord, forever." Your hand, Lord, is lifted high for justice. Blessed be the good and benevolent One for the good, and concerning evil, one says, "Blessed be the true Judge." Rabbi Tanhuma bar Rabbi Yudan said, "One verse says (Psalm 56:11), 'In G-d I will praise His word,' and another verse says (Psalm 52:11), 'In the Lord I will praise His word.'" If judgment comes upon me, I will praise His word. If mercy comes upon me, I will praise His word. In any case, I will praise His word. The rabbis said (Psalm 116:3-4), "The sorrows of death encompassed me, and the pains of hell got hold of me; I found distress and sorrow. Then I called upon the name of the Lord; 'O Lord, I beseech You, deliver my soul!'" I will lift up the cup of salvation, and call upon the name of the Lord. In any case, to you, Lord, I will call out (sing praises)....
