Negative commandment · Lo Ta’aseh #232 of 613
Not to withhold lending money to a poor person or providing him with his needs
שלא יימנע מלהחיות לעני ומליתן לו מה שהוא צריך
The verse · Devarim 15:7
כִּי־יִהְיֶה בְךָ אֶבְיוֹן מֵאַחַד אַחֶיךָ בְּאַחַד שְׁעָרֶיךָ בְּאַרְצְךָ אֲשֶׁר־ה׳ אֱלֹהֶיךָ נֹתֵן לָךְ לֹא תְאַמֵּץ אֶת־לְבָבְךָ וְלֹא תִקְפֹּץ אֶת־יָדְךָ מֵאָחִיךָ הָאֶבְיוֹן
“If there be among you a poor man, one of thy brethren within any of thy gates in thy land which the Lord thy God gives thee, thou shalt not harden thy heart, nor shut thy hand from thy poor brother:”
The Rambam’s words
Not to withhold lending money to a poor person or providing him with his needs, as [Deuteronomy 15:7] states: "Do not harden your heart." Thus, a person who gives charity fulfills a positive commandment, while one who spurns the opportunity to give not only fails to perform a positive commandment, but also transgresses a negative commandment.
שלא יימנע מלהחיות לעני ומליתן לו מה שהוא צריך, שנאמר "לא תאמץ את לבבך" (דברים טו,ז); נמצא הנותן צדקה עושה מצות עשה, והמעלים עיניו מן הצדקה יתר על שביטל עשה עבר על לא תעשה.
Where in the Mishneh Torah
Hilchot Gifts to the Poor הלכות מתנות עניים