And while he was at Bethany in the house of Simon the leper, as he was reclining at table, a woman came with an alabaster flask of ointment of pure nard, very costly, and she broke the flask and poured it over his head. There were some who said to themselves indignantly, “Why was the ointment wasted like that? For this ointment could have been sold for more than three hundred denarii and given to the poor.” And they scolded her. But Jesus said, “Leave her alone. Why do you trouble her? She has done a beautiful thing to me. For you always have the poor with you, and whenever you want, you can do good for them. But you will not always have me. She has done what she could; she has anointed my body beforehand for burial. And truly, I say to you, wherever the gospel is proclaimed in the whole world, what she has done will be told in memory of her.”
Mark 14:3-9.

When Peter declared that Jesus was the Christ, the son of the living God, Jesus said he was blessed because, "Flesh and blood has not revealed this to you, but my Father who is in heaven." (Matthew 16:17). And yet, Peter was horrified that Jesus said He would be executed. This woman with the nard knew it and accepted it. Jesus thought she should be remembered for that.

In Acts 21, a prophet named Agabus spoke over Paul, predicting he would be bound by the Jews in Jerusalem and turned over to the gentiles. When his friends begged him not to go to Jerusalem,  Paul said, "“What are you doing, weeping and breaking my heart? For I am ready not only to be imprisoned but even to die in Jerusalem for the name of the Lord Jesus.” (Acts 21:13). To glorify God is better than life.