The Rambam taught that we are commanded to emulate Hashem. There are so many quotes in Tanach that illustrate how Hashem takes care of the poor and needy. It says in T’hilim 146, “He performs justice for the oppressed. He gives bread to the hungry.” In Mishlei, it states, “Blessed is he who is generous to the poor.” T’hilim 112 states, “Widely distributed charity he dispersed to the needy.” Leviticus says, “And you shall not strip your vineyard bare, neither shall you gather the fallen grapes of the vineyard. You shall leave them for the poor and for the sojourner.”