Whoever is generous to the poor lends to YHWH, and he will repay him for his deed.
Proverbs 19:17

This isn't a promise of wealth in exchange for charity. It's a general principle that being generous with the poor doesn't make a person poorer because God arranges things to at least even out the scales. Even then, your return might not be in material wealth, but in friendship and a good name.