The disciple Judas became angry, saying that the money spent on such expensive perfume could have been put to better use for the poor. What he probably meant was that he could have put the money to better use. Judas was treasurer for the disciples and embezzled their money.
Jesus saw Mary’s embarrassment and distress and told the guests to leave her alone. He knew that she was just expressing her love for Him and desire to live a better life. Jesus forgave Mary's sins and accepted her show of devotion.
Jesus also blessed and dignified her act of love by proclaiming that “wherever this gospel is preached throughout the world, what she has done will also be told, in memory of her” (Matthew 26:13).
It was no coincidence that Mary Magdalene was among the first group of people to find Jesus’ empty tomb after His death and resurrection. Early on Sunday morning Mary, together with some other women, hurried to Jesus’ tomb. They took spices and herbs to properly prepare His body for burial.