Summary: Mary worshipped Jesus as the Lamb of God through extravagant surrender of all that she possessed.
“When Jesus was at Bethany in the house of Simon the leper, a woman came up to him with an alabaster flask of very expensive ointment, and she poured it on his head as he reclined at table. And when the disciples saw it, they were indignant, saying, ‘Why this waste? For this could have been sold for a large sum and given to the poor.’ But Jesus, aware of this, said to them, ‘Why do you trouble the woman? For she has done a beautiful thing to me. For you always have the poor with you, but you will not always have me. In pouring this ointment on my body, she has done it to prepare me for burial. Truly, I say to you, wherever this gospel is proclaimed in the whole world, what she has done will also be told in memory of her.’” 
It was only hours until the Master would be crucified. He had told His disciples repeatedly that His life would be taken from Him, and they still did not understand. Perhaps they could be forgiven for failing to understand the first references—they were somewhat vague. Jesus said, “Just as Jonah was three days and three nights in the belly of the great fish, so will the Son of Man be three days and three nights in the heart of the earth” [MATTHEW 12:40]. However, Jesus became increasingly specific as the time of His passion drew near.
Nevertheless, the Master had attempted to instruct the disciples from earliest days. Peter had just made his great confession concerning Jesus [MATTHEW 16:13-20]. It was assuredly a powerful insight concerning Jesus that Peter revealed through his confession. In fact, the Master commended him for his sensitivity to the Spirit of God. However, take careful note of the verses that follow. “From that time Jesus began to show his disciples that he must go to Jerusalem and suffer many things from the elders and chief priests and scribes, and be killed, and on the third day be raised. And Peter took him aside and began to rebuke him, saying, ‘Far be it from you, Lord! This shall never happen to you.’ But he turned and said to Peter, ‘Get behind me, Satan! You are a hindrance to me. For you are not setting your mind on the things of God, but on the things of man’” [MATTHEW 16:21-23; see also MARK 8:31-33]. When it became apparent that the disciples were convinced of Jesus’ Person, He began immediately to teach them of His sacrifice. Just as precipitously, Peter and the other disciples attempted to dissuade Him from offering Himself as a sacrifice, only to earn His stern rebuke.
Shortly after this first clear statement of His sacrifice, Jesus again spoke of His pending death. Again, the disciples could not comprehend what He was saying. “As they were gathering in Galilee, Jesus said to [His disciples], ‘The Son of Man is about to be delivered into the hands of men, and they will kill him, and he will be raised on the third day’” [MATTHEW 17:22, 23]. The text continues by noting that, “they were greatly distressed.” They didn’t understand, but the very fact that He spoke of His death disturbed them greatly.