John knows why Judas makes this statement. He is familiar with messianic prophecy. He also understands Judas’ position in Jesus’ ministry. Note John 13:29. The spirit that Judas has would cause him to pocket some of the money. Mary gives openly and honestly. Judas betrays Jesus for 30 pieces of silver. This is the price of a gored slave.
When this type of event happens, it is usually something festive. In this case, it was in preparation for His burial. Living by God’s Word, Jesus knows what the purpose of this anointing is. He knew He was about to face pain, death and burial.
“He made His grave with the wicked, and with the rich in His death; because He had done no violence, neither was any deceit in His mouth.” Is. 53:9
Jesus defends Mary’s act of love and devotion. He says that they will always have the poor with them. This is not a divine endorsement of poverty. Neither is it an encouragement to do nothing about poverty. The causes of poverty are many, and people will always have time to help the poor. Mark 14:7. The opportunity to show love toward Jesus while he is on earth is limited. They would not always have Jesus on the earth. John 12:35; 13:33; 14:3-4.