Three things are mentioned about Mary's kindness: first, the ointment she used; secondly, the kindness she offered; thirdly, its effect.
With regard to the ointment, three things are noted. First, the amount, and it was a large amount, a pound of ointment: "If you have many possessions, make your gift from them in proportion" (Tobit 4:8). Secondly, its matter, for it was made of nard: "While the king was on his couch, my nard gave forth its fragrance" (Song 1:11). Recall that nard is a short black aromatic herb; and the ointment which is made from it has a fragrance which has the power to giv...e strength and comfort. Thirdly, its composition is noted, for the nard is described as pisticus. According to Augustine, the word pisticus is taken from the place where nard originates. However, it is better to interpret this word as meaning "true" or "pure," that is, as not adulterated: for pistis in Greek is the same as our fides (truthful, honest). He adds that it was costly, because it was made from nard, which is used in costly ointments, and perhaps other expensive ingredients were added to it. This teaches us that we should offer to God those things we regard as most precious: "I will offer to thee burnt offerings of fatlings, with the smoke of the sacrifice of rams" (Ps 66:15); "Cursed be the cheat who has a male in his flock, and vows it, and yet sacrifices to the Lord what is blemished" (Mal 1:14).
See Mary's humility, for she fell down at the feet of Jesus and anointed the feet of Jesus, according to, "Let us worship at his footstool" (Ps 132:7). Secondly, see her devotion, for she wiped his feet with her hair, in this way making an offering of herself: "Yield your members to God as instruments of righteousness" (Rom 6:13).
He mentions the effect of her ministering when he says, and the house was filled with the fragrance of the ointment. This tells us of the goodness of this ointment, which filled the entire house: "We will run after thee to the odor of thy ointments" (Song 1:3).
The question is raised as to whether this woman is the same woman who anointed our Lord as mentioned in Luke (7:37), Matthew (26:7) and Mark (14:3). We learn from Jerome and Chrysostom that many think that the sinful woman mentioned by Luke is not the sister of Lazarus, Mary, who is said in John to have anointed the Lord. Origen adds that in John she is also not the woman of whom Matthew and Mark speak, but they were speaking of some other woman. He gives three reasons for this opinion. The first is based on the time: for the woman in John anointed the Lord six days before the Passover, while the woman mentioned by Matthew and Mark did so some time during the two days preceding the Passover. For Matthew prefaces his account by stating that the Lord said: "You know that after two days the Passover is coming" (Matt 26:2); and in Mark we read: "It was now two days before the Passover and the feast of the Unleavened Bread" (Mk 14:1). The second reason is based on the place: for in Matthew and Mark the woman is said to have anointed the Lord in the house of Simon the leper, but in John she seems to be in the house of Martha, for we read that Martha was serving the guests. And Augustine agrees with this. The third reason is from the action itself: for the woman in Matthew and Mark anointed the head of our Lord, while the one in John anointed his feet.
On the other hand, Augustine and Gregory claim that the four Evangelists are speaking of one and the same woman, but that she anointed our Lord twice. The first time, mentioned by Luke, was at the beginning of her conversion, some time during the middle of Christ's public life. The second time, mentioned by the other three Evangelists, was a few days before Christ's passion. Thus the same act is mentioned here in John and in Matthew and Mark.
As for the discrepancy in the time, Augustine says that John preserved the historical order, while Matthew and Mark merely remembered that it took place just prior to Judas' betrayal, which was believed to have been occasioned by this event. As for the argument based on the difference of place, there is no reason why the house of Simon the leper could not be the house of Mary and Martha, since Simon might have been the head of the house. He is called a leper because at one time he was a leper, but was cured by Christ. As far as the act itself is concerned, Augustine says that the woman anointed both the head and feet of Jesus.
If the objection is raised that according to Mark she broke the alabaster jar and poured ointment on the head of Jesus, one might answer this in two ways. First, that it was broken in such a way that some remained for anointing his feet; secondly, she could have anointed his feet first, and then, breaking the jar, poured the rest on his head.
Mystically, the pound Mary used denotes the work of justice, for it belongs to justice to weigh things and give pound for pound: "Their weight shall be equal" (Ezek 45:11). Now four other virtues must be added if the work of justice is to be perfect. First, compassion: and so he says, ointment, which, because it is soothing, represents mercy: "For judgment is without mercy to one who has shown no mercy" (James 2:12). Secondly, humility is needed: so he says, nard, which, since it is a small herb, signifies humility: "The greater you are, the more you must humble yourself" (Si 3:18). Thirdly, faith is needed: thus he says, pure (pisticus), that is believing (fidelis): "The righteous shall live by his faith" (Hab 2:4). Fourthly, charity must be present: so he says, costly, for charity alone pays the price for eternal life: "If I give away all I have, but have not love, I gain nothing" (1 Cor 13:3).
The works of justice anoint both the feet and head of Jesus. By his feet we understand the mystery of his humanity; and by his head, his divinity, according to: "The head of Christ is God" (1 Cor 11:3). Thus one who venerates the divinity and humanity of Christ is said to anoint his head and feet.
Or, we can take the head as indicating the very person of Christ, according to: "He has made him the head over all things for the church" (Eph 1:22). Then the feet are Christ's faithful, of whom we read: "As you did it to one of the least of these my brethren, you did it to me" (Matt 25:40); "How beautiful upon the mountains are the feet of him who brings good tidings, who publishes peace" (Is 52:7). Thus, one who honors Christ himself, anoints the head of Christ; and one who serves his faithful anoints our Lord's feet.
Again, because the hair is produced from what is superfluous in the body, one dries the Lord's feet with his hair when he takes what he has in surplus and relieves the needs of his neighbor: "Give that which remains as alms" (Lk 11:41). Thus Augustine says: "If you have a surplus of anything, give it to the poor and you have dried the feet of the Lord."
The fact that the house was filled with the fragrance of the ointment signifies that because of the works of justice, the Church enjoys and is filled with a good name: "We are the aroma of Christ" (2 Cor 2:15).
Source: Commentary on John