166. After Abraham was told about Isaac, it is written, "And the men rose up from there, and looked toward Sodom" (Beresheet 18:16). Rabbi Elazar said, Come and behold. The Holy One, blessed be He, shows goodness to all beings, but especially to those who follow His path. And even when He decides to judge the world, He arranges for anyone who loves Him to perform a meritorious act before the world is punished.
167. This corresponds to what we have learned. When the Holy One, blessed be He, loves a person, He sends him a present. And what is THAT PRESENT? It is a poor man for whom he can perform a meritorious act. So now that he is meritorious and deserving, the Holy One, blessed be He, draws a cord of grace from the right side upon him. He winds the cord around his head and marks him, so that when Judgment falls on the world, the Angel of Destruction will take notice of him AND NOT HURT HIM. Because he raises his eyes and notices that mark, he avoids him. This is why the Holy One, blessed be He, arranged beforehand to make him meritorious.