Not a parallel example, and not even quoted accurately.
Matthew 26:6: a woman applies expensive oil onto Jesus's head during the
'last supper' and is criticized by the disciples, who say it should
have been sold for a great sum to buy food for the poor. Jesus' reponse
is to the effect that a gift should be accepted graciously.
Kathryn Aegis