Now his reason proposes its own petition when he says, Father, glorify thy name. Thy name can be understood in two ways. First, it can mean the Son himself. For a name (nomen) - which comes from the word for knowledge or being known (notitia) - is like a sign (notamen). Thus a name is what manifests a thing. Now the Son manifests the Father: "Father, I have manifested thy name" (17:6). We read of this name: "Behold, the name of the Lord comes from far" (Is 30:27). So the meaning is this: Father, glorify thy name, that is, your Son: "And now, Father, glorify thou me in thy own presence with the... glory which I had with thee before the world was made" (17:5). Or, the name of the Lord indicates the knowledge which men have of the Father, then the meaning is, Father, glorify thy name, that is, do what is for the glory of your name. Yet it comes to the same thing, because when the Son is glorified the name of the Father is glorified. He says this because the Son was going to be glorified by his passion: "He became obedient," to the Father, "unto death, even death on a cross. Therefore, God has highly exalted him" (Phil 2:8).
He is saying here in effect: By the desire of nature I ask to be saved, but my reason asks that your name be glorified, that is, that the Son suffer, because it was by the passion of Christ that men were to receive their knowledge of God and glorify him. For before the passion God was known only in Judea, and his name was great in Israel; but after the passion, God's name was glorified even among the Gentiles.
Then when the Evangelist says, Then a voice came from heaven, the promise of glory is given. First, the voice promising glory is heard; secondly, the crowd expresses its opinion (v 29); lastly, the meaning of the voice is explained (v 30).
With regard to the first, he says, Then a voice came from heaven. This is the voice of God the Father. It was the same voice that was heard when Christ was baptized, "This is my beloved Son" (Mt 3:17), and at his transfiguration (Mt 17:5). Although every voice of this kind was formed by the power of the entire Trinity, this was specifically formed to represent the person of the Father; thus it is referred to as the voice of the Father. In a similar manner the dove was formed by the entire Trinity to signify the person of the Holy Spirit. And again, the body of Christ was formed by the entire Trinity, but specifically assumed by the person of the Word because it had been formed to be united to him.
This voice, then, does two things. First, it reveals the past, when saying, I have glorified it, that is, I have begotten you as glorious from all eternity, because the Son is a certain glory and splendor of the Father: "For she (Wisdom) is a reflection of eternal light, a spotless mirror of the working of God" (Wis 7:26); "He reflects the glory of God and bears the very stamp of his nature" (Heb 1:3). Or, I have glorified it at your birth, when the angels sang: "Glory to God in the highest" (Lk 2:14) and in the miracles the Father performed through him.
Secondly, the voice foretells what is to come: and I will glorify it again, in the passion, in which Christ triumphed over the devil, and in the resurrection and the ascension, and in the conversion of all the world: "The God of Abraham and of Isaac and of Jacob, the God of our fathers, glorified his Son Jesus" (Acts 3:13).
Source: Commentary on John