עץ יוסף על בראשית רבה · פרשה צח, יד
הַכֹּל בְּקִוּוּי כלו׳ שאפי׳ אֵין הָאָדָם כְּדַאי זוֹכֶה לְכָל הַמַּתָּנוֹת בִּזְכוּת הַקִּוּוּי כִּדְמְפָרֵשׁ וְהַיְינוּ בִּזְכוּת הַאֲמָנָה וְהַבִּטָּחוֹן. ועז״א לִישׁוּעָתְךָ קִוִּיתִי ה׳ שאפי׳ לֹא יִהְיֶה כְּדָאִים כָּל כָּךְ לִגְאוּלָּה וִישׁוּעָה מ״מ תִּהְיֶה הַיְשׁוּעָה בִּזְכוּת הַקִּוּוּי וְהַבִּטָּחוֹן (נזה״ק):
Etz Yosef on Bereishis Rabbah · 98:14
From the Nezer HaKodesh: “Everything is through hope”: even one who is not worthy merits all the gifts in the merit of hope, of emunah and bitachon
Everything is through hope: that is, even if a person is not worthy, he merits all the gifts in the merit of hope, as [the Midrash] goes on to explain; that is, in the merit of emunah and bitachon. And about this [Yaakov] said, “I hope for Your salvation, Hashem” (Bereishis 49:18): that even if they are not so worthy of redemption and salvation, even so the salvation will come in the merit of hope and bitachon (Nezer HaKodesh).