If glory were yours all along, why then would feel the need to seek it? You wouldn't, and since glory is God's, Jesus did not begrudge it.
After all, His attitude, existing in the form of God, was that He did not consider equality to God as something to cling to... but emptied Himself, taking the form of a servant being made in human likeness. And being found in appearance as a man, He humbled Himself and became obedient to death--even death on a cross. Therefore God exalted Him to the highest place, and gave Him the [definitive article] name above all names, that at the name of Jesus every knee should bow, in heaven and on earth and under the earth, and every tongue confess that Jesus Christ is Lord, to the glory of God the Father. [Philippians 2:7-11]
...however, if you, or anyone else, were to consider equality to God, then this would be robbery, indeed.
Isaiah 42:8 "I am the LORD, that is My name, I will not give My glory to another, Nor My praise to graven images.
John 8
[Subheading] Before Abraham was, I Am
“I do not have a demon,” Jesus replied, “but I honor My Father, and you dishonor Me. I do not seek My own glory. There is One who seeks it, and He is the Judge. Truly, truly, I tell you, if anyone keeps My word, he will never see death.”
Jesus answered, “If I glorify Myself, My glory means nothing. The One who glorifies Me is My Father, of whom you say ‘He is our God.’ You do not know Him, but I know Him. If I said I did not know Him, I would be a liar like you. But I do know Him, and I keep His word. Your father Abraham was overjoyed to see My day. He saw it and was glad.”
“Truly, truly, I tell you,” Jesus declared, “before Abraham was born, I am!”