D'var Torah: "One who is gracious to the poor has lent to HaShem, and He will pay him his reward" (Mishlei 19:17). HaShem credits a person who gives charity with two good deeds. Firstly, HaShem acknowledges that the giver relinquished some of his funds to his friend. In light of this, HaShem considers our act of charity as it we lent money to Him, Himself! There is no question that HaShem will reimburse the "debt." Hence the opening of the verse, "One who is gracious to the poor has lent to HaShem." Secondly, HaShem recognizes that the giver's kindness helped his friend overcome a difficult situation. HaShem will exceedingly reward us for the kindness and benefit that we bestowed upon our friend. As per the closing of the verse, "He will repay him his reward."
Moral: In His infinite mercy and kindness, HaShem divides an act of charity into two parts of goodness. Therefore, HaShem repays the outlay of a person who gives charity; and also rewards him for his act of kindness.
Application: Be confident that HaShem will compensate you for all the charity that you give as well as reward you for rescuing your friend.
(Based on the commentary of the Vilna Gaon)