John 12:3
Mary therefore took a pound of ointment of pure nard, very precious,—The ointment was pure, costly, and of exquisite odor. [It was the most expensive anointing oil of that date.]
and anointed the feet of Jesus,—Matthew 26:7 and Mark 14:3 say that it was poured upon his head. Both head and feet and the exposed parts of the body were all anointed. To anoint him for his burial would suggest this.
and wiped his feet with her hair: and the house was filled with the odor of the ointment.—John who alone tells who did the anointing says that the loving humility of Mary led her to anoint the feet and to wipe them with the hair of her head.