John 20:17 " Jesus said to her, "Do not cling to me, for I have not yet ascended to my Father; but go to my brethren and say to them, I am ascending to my Father and your Father, and to MY GOD AND YOUR GOD." WHY WOULD HE SAY THIS TO HER IF HE WERE GOD WHY WOULD HE NEED TO GO TO HIS GOD?
The verse you quote in John occurred roughly 12 hours after the one I quoted where he basically says don't touch me yet because I have not ascended to my Father and My God.
Do we have any proof of what happened during the12 hour period that these 2 events took place? Other than an ascension took place as he tells her where he's going! But we do see that he allows them to touch him after he returns from the missing 12 hour period and now allows them to put their fingers in his side and nail holes. Could we assume that he had ascended to His Father and his God during this 12 hour disappearanace? Yes because the verse tells us he did. Was he glorified at that time?
John 7:39 "But this he spoke concerning the spirit, whom those believing in him would receive; for the Holy spirit was not yet given, because Jesus was not yet glorified."
John 20:22 "And when he had said this ,he breathed on them, and said to them Receive the Holy Spirit.
To conclude when you read that section look for the small things that give us ability to figure out what took place, everything if possible. As when he came to them in the evening he allowed them to touch him and he breathed on them and said receive ye the Holy Spirit. But in the early morning hours of the same day he told Mary that he was going to his Father and his God. There is a time lapse that we don't know what happened except that he went to the Father and when he came back He could give the Holy spirit so according to John 7:39 HE HAD TO BE GLORIFIED FIRST IN ORDER TO BE ABLE TO GIVE OUT THE SPIRIT. SO WE SEE WHAT MUST HAVE HAPPENED-HE WAS GLORIFIED DURING THAT SPECIFIC DAY IN THE TIME FRAME MENTIONED.
The question we would all need to ask is what exactly is GLORIFICATION ? In Jesus' case it meant he now could give out the Holy Spirit to the believer. WHY COULD HE NOT DO THAT PRIOR TO GLORIFICATION IF HE WAS GOD?