לְדָוִ֗ד מִ֫זְמ֥וֹר חֶֽסֶד־וּמִשְׁפָּ֥ט אָשִׁ֑ירָה לְךָ֖ יְהוָ֣ה אֲזַמֵּֽרָה׃
אַ מזמור פֿון דָוִדן. גענאָד און גערעכטיקײט װעל איך באַזינגען, צו דיר גאָט װעל איך זינגען.
Sha'arei Orah
This is why,86Talmud Bavli, Brachot 60b; Also see Rashi there. “One is obligated to bless over the bad, just as he blesses over the good.” About this King David, peace be upon him, likewise said,87Psalms 56:11; Also see Targum and Midrash Tehillim there. “In God-b’Elohi”m-באלהי״ם, I will praise the Word; In HaShem-b’HaShem-ביהו״ה I will praise the Word.” This itself is the faith of the Jewish people, that we accept the judgments of HaShem-יהו"ה our God-Elohi”m-אלהי״ם with joy, and joyously accept His rebukes, afflictions, and judgments, thankfully submitting to Him for everything and blessing His Name. As King David, peace be upon him said,88Psalms 101:1 “I sing of kindness-Chessed and judgment-Mishpat; to You, HaShem-יהו״ה, do I sing praise.” That is, “I sing whether it is kindness-Chessed or judgment-Mishpat.”89Talmud Bavli, Brachot 60b ibid. That is, one should never be contemptuous and speak harsh words because of suffering. All this is hinted in the verse,90Exodus 22:27 – See Targum Onkelos there. “You shall not curse Elohi”m-אלהי״ם.” This verse likewise includes every judge in the world, and all Courts of Law, both the Supernal courts and the lower ones.