Then when he says, communicating to the necessities of the saints, he discusses charity with regard to certain particular persons. First, as regards the needy; second, as regards enemies, at bless those who persecute you (Rom 12:14).
Concerning the first he does two things. First, he urges in general that the benefits of charity be afforded to the needy, when he says: communicating to the necessities of the saints. Three things should be noted here: first, that alms be given out of charity to the poor and needy: let him labor, doing honest work with his hands, so that he may be able to give t...o others in need (Eph 4:28).
Second, that upright and saintly persons should be helped before others; hence he says: to the necessities of the saints: give to the good man; refuse the sinner (Sir 12:4). This does not mean that sinners should not be helped in their needs, but that they should not be helped so as to nourish sin. Yet it is more useful to help the just, because such an alms is fruitful not only for the giver but also from the prayers of the recipient: make friends for yourselves by means of unrighteous mammon, so that when it fails they may receive you into the eternal habitations (Luke 16:19), namely, by their prayers.
Then he urges them to be hospitable when he says: pursuing hospitality, because the other works of mercy are included in this one. For a host offers not only his home as a shelter, but provides for other needs as well: do not neglect to show hospitality to strangers (Heb 13:12); practice hospitality ungrudgingly to one another (1 Pet 4:9).
Source: Commentary on Romans