Then when he says, having testimony for her good works, he shows that a widow must be chosen, because she has performed good works:
first, in general;
second, in detail, at if she has brought up children;
third, he gives to understand the same for all good works, at if she has diligently.
As to the first he says: having testimony for her good works: let her works praise her in the gates (Prov 31:31). And he says, having testimony: the works themselves which I do, give testimony of me that the Father has sent me (John 5:36); for externals disclose the faith within: I will show you by works ...my faith (Jas 2:18).
But which works? Toward her own and toward others. Toward her own he says, if she has brought up children, namely, in the fear of God and in chastity: have you children? Instruct them and bow down their neck from their childhood (Sir 7:25).
Toward others he mentions three works of godliness: first, mercy, because women, being soft-hearted, are naturally merciful. First, therefore, he teaches hospitality, if she has shown hospitality: pursuing hospitality (Rom 12:13);
second, along with this he mentions humility, if she has washed the saints' feet: for saints are to be received in that way and treated honorably: but Martha was busy about much serving (Luke 10:40). So too Christ: if I have washed your feet, you also ought to wash one another's feet (John 13:14). Augustine's gloss on this says: brethren, do this to one another; and what they cannot do with their hands, they do in their heart. But it is much better to do this with their hands; lest a Christian come to scorn the very thing which Christ did. For when one is bowed down before his brother's feet, his heart is ready for humility; or if humility is already present, it is strengthened.
Third, courage and constancy to help those in trouble; hence he says, if she has ministered to those who suffer tribulation: you had compassion on those who were in bands (Heb 10:34).
Then when he says, if she has diligently, he concludes to the works she ought to have practiced well, saying, if she has diligently followed every good work: while we have time, let us work good to all men (Gal 6:10).
Source: Commentary on 1 Timothy