ספר המדות, Salvation and Miracles Salvation and Miracles · טז
Sefer HaMiddot 1023
טז. כְּשֶׁאָדָם בָּא לְאֵיזֶה נִסָּיוֹן, יֵדַע כְּשֶׁיַּעֲמוֹד בְּזֶה הַנִּסָּיוֹן, שֶׁהַקָּדוֹשׁ־בָּרוּךְ־הוּא יַעֲשֶׂה לוֹ נֵס.
16. When a person comes to a test, he should know that if he stands in it (i.e. not succumb to temptation), the Holy One, Blessed is He- will do a miracle for him (t.n see also #4).