Are you the teacher of Israel and yet you do not understand these things?
What Nicodemus did at Golgotha is so wonderful
When Jesus Christ asked Nicodemus "Are you the teacher of Israel and yet you do not understand these things?", It's very clear that Nicodemus going to do some great and wonderful thing - Jesus answered, “Truly, truly, I say to you, unless one is born of water and the Spirit, he cannot enter the kingdom of God. That which is born of the flesh is flesh, and that which is born of the Spirit is spirit. Do not marvel that I said to you, ‘You must be born again.’ The wind blows where it wishes, and you hear its sound, but you do not know where it comes from or where it goes. So it is with everyone who is born of the Spirit.” Nicodemus said to him, “How can these things be?” Jesus answered him, Are you the teacher of Israel and yet you do not understand these things? - John 3:3-10
And as a Teacher of Israel, Nicodemus very much aware of that the anointing oil is belongs to God, and it should never be applied on any Human body.
Also take for yourself quality spices—five hundred shekels of liquid myrrh, half as much sweet-smelling cinnamon (two hundred and fifty shekels), two hundred and fifty shekels of sweet-smelling cane, five hundred shekels of cassia, according to the shekel of the sanctuary, and a hin of olive oil. And you shall make from these a holy anointing oil, an ointment compounded according to the art of the perfumer. It shall be a holy anointing oil. With it you shall anoint the tabernacle of meeting and the ark of the Testimony; the table and all its utensils, the lampstand and its utensils, and the altar of incense; the altar of burnt offering with all its utensils, and the laver and its base. You shall consecrate them, that they may be most holy; whatever touches them must be holy. And you shall anoint Aaron and his sons, and consecrate them, that they may minister to Me as priests. And you shall speak to the children of Israel, saying: This shall be a holy anointing oil to Me throughout your generations. It shall not be poured on man’s flesh; nor shall you make any other like it, according to its composition. It is holy, and it shall be holy to you. Whoever compounds any like it, or whoever puts any of it on an outsider, shall be cut off from his people - Exodus 30:23-33
And the same Nicodemus, who know who is Jesus Christ brought the anointing oil mixture to Golgotha with unshakable confident that He is going to apply the anointing mixture on God's body - After this, Joseph of Arimathea, being a disciple of Jesus, but secretly, for fear of the Jews, asked Pilate that he might take away the body of Jesus; and Pilate gave him permission. So he came and took the body of Jesus. And Nicodemus, who at first came to Jesus by night, also came, bringing a mixture of myrrh and aloes, about a hundred pounds. Then they took the body of Jesus, and bound it in strips of linen with the spices, as the custom of the Jews is to bury. Now in the place where He was crucified there was a garden, and in the garden a new tomb in which no one had yet been laid. So there they laid Jesus, because of the Jews’ Preparation Day, for the tomb was nearby - John 19:38-42