Answer:
There were two women in the Bible who did this.
The first we are not sure who it was:
Luke 7:36-38 And one of the Pharisees desired him that he would eat with him. And he went into the Pharisee’s house, and sat down to meat. And, behold, a woman in the city, which was a sinner, when she knew that Jesus sat at meat in the Pharisee’s house, brought an alabaster box of ointment, And stood at his feet behind him weeping, and began to wash his feet with tears, and did wipe them with the hairs of her head, and kissed his feet, and anointed them with the ointment.
Many people believe this was Mary Magdalene, but there is no specific Biblical proof.
The second was Mary the sister of Lazarus and Martha; she did this days before Jesus death:
John 12:2-3 There they made him a supper; and Martha served: but Lazarus was one of them that sat at the table with him. Then took Mary a pound of ointment of spikenard, very costly, and anointed the feet of Jesus, and wiped his feet with her hair: and the house was filled with the odour of the ointment.
Good question,
Pastor Brad