The Talmud records that God Himself prays: 'May it be My will that My mercy overcome My anger, and that My mercy prevail over My [strict] attributes.' This remarkable passage portrays God as desiring that compassion triumph over pure justice even in His own governance of the world.
״יְהִי רָצוֹן מִלְּפָנַי שֶׁיִּכְבְּשׁוּ רַחֲמַי אֶת כַּעֲסִי, וְיִגּוֹלּוּ רַחֲמַי עַל מִדּוֹתַי, וְאֶתְנַהֵג עִם בָּנַי בְּמִדַּת רַחֲמִים, וְאֶכָּנֵס לָהֶם לִפְנִים מִשּׁוּרַת הַדִּין״. תַּנְיָא, אָמַר רַבִּי יִשְׁמָעֵאל בֶּן אֱלִישָׁע: פַּעַם אַחַת, נִכְנַסְתִּי לְהַקְטִיר קְטוֹרֶת לִפְנַי וְלִפְנִים, וְרָאִיתִי אַכְתְּרִיאֵל יָהּ ה׳ צְבָאוֹת, שֶׁהוּא יוֹשֵׁב עַל כִּסֵּא רָם וְנִשָּׂא, וְאָמַר לִי: ״יִשְׁמָעֵאל בְּנִי, בָּרְכֵנִי!״ אָמַרְתִּי לוֹ:
Rav Zutra bar Tovia said that Rav said: God says: May it be My will that My mercy will overcome My anger towards Israel for their transgressions, and may My mercy prevail over My other attributes through which Israel is punished, and may I conduct myself toward My children, Israel, with the attribute of mercy, and may I enter before them beyond the letter of the law. I said to Him the prayer that God prays: “May it be Your will that Your mercy overcome Your anger, and may Your mercy prevail over Your other attributes, and may You act toward Your children with the attribute of mercy, and may You enter before them beyond the letter of the law.” The Holy One, Blessed be He, nodded His head and accepted the blessing.