ספר המדות A Righteous Person / Part I · קכ
Sefer HaMiddot 2131
קכ. לִפְעָמִים גּוֹזְרִים מִלְמַעְלָה עַל מִסְפַּר בְּנֵי אָדָם שֶׁיָּמוּתוּ, וְיֵשׁ אֶחָד בֵּינֵיהֶם שֶׁהַצַּדִּיק אוֹהֵב אוֹתוֹ, יֵשׁ כֹּחַ בַּצַּדִּיק לְהִתְפַּלֵּל עָלָיו וּלְהַצִּיל אוֹתוֹ וְלִתֵּן אַחֵר תַּחְתָּיו.
120. Sometimes it is decreed from Above that a number of people should die, and there is one among them that the Tzaddik loves. The Tzaddik has the power to pray for him, and save him, and put another in his place.