Berakhot 7a says:
מִכָּאן שֶׁהַקָּדוֹשׁ בָּרוּךְ הוּא מִתְפַּלֵּל
Whom does G-d pray to?
Mi Yodeya is a question and answer site for those who base their lives on Jewish law and tradition and anyone interested in learning more. It only takes a minute to sign up.Sign up to join this community
The next line on that page answers your question. G-d's prayer is to Himself, like it says:
אָמַר רַב זוּטְרָא בַּר טוֹבִיָּה, אָמַר רַב: ״יְהִי רָצוֹן מִלְּפָנַי שֶׁיִּכְבְּשׁוּ רַחֲמַי אֶת כַּעֲסִי, וְיִגּוֹלּוּ רַחֲמַי עַל מִדּוֹתַי, וְאֶתְנַהֵג עִם בָּנַי בְּמִדַּת רַחֲמִים, וְאֶכָּנֵס לָהֶם לִפְנִים מִשּׁוּרַת הַדִּין״.
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.