John 12:12-15: "12 The next day the large crowd that had come to the feast heard that Jesus was coming to Jerusalem. 13 So they took branches of palm trees and went out to meet him, crying out, 'Hosanna! Blessed is he who comes in the name of the Lord, even the King of Israel!' 14 And Jesus found a young donkey and sat on it, just as it is written, 15 'Fear not, daughter of Zion; behold, your king is coming, sitting on a donkey's colt!'"
Psalm 118:26: "Blessed is he who comes in the name of the LORD! We bless you from the house of the LORD."
Psalm 24:7-9: "7 Lift up your heads, O gates! And be lifted up, O ancient doors, that the King of glory may come in. 8 Who is the King of glory? The LORD, strong and mighty, the LORD, mighty in battle! 9 Lift up your heads, O gates! And lift them up, O ancient doors, that the King of glory may come in."
+++
The text is public domain:
All glory, laud, and honor
To You, Redeemer, King,
To whom the lips of children
Made sweet hosannas ring.
You are the King of Israel
And David's royal Son,
Now in the Lord's name coming,
Our King and Blessed One.
All glory, laud, and honor
To You, Redeemer, King,
To whom the lips of children
Made sweet hosannas ring.
The company of angels
Is praising You on high,
And we with all creation
In chorus make reply.
All glory, laud, and honor
To You, Redeemer, King,
To whom the lips of children
Made sweet hosannas ring.
The multitude of pilgrims
With palms before You went;
Our praise and prayer and anthems
Before You we present.
All glory, laud, and honor
To You, Redeemer, King,
To whom the lips of children
Made sweet hosannas ring.
To You before Your passion
They sang their hymns of praise;
To You, now high exalted,
Our melody we raise.
All glory, laud, and honor
To You, Redeemer, King,
To whom the lips of children
Made sweet hosannas ring.
As You received their praises,
Accept the prayers we bring,
O Source of ev'ry blessing,
Our good and gracious King.
All glory, laud, and honor
To You, Redeemer, King,
To whom the lips of children
Made sweet hosannas ring.
+++
The text from John is the main source, appearing in the second half of the refrain ("To whom the lips of children / Made sweet hosannas ring") and the verses (although some verses simply elaborate on the text). "Now in the Lord's name coming, / Our King and Blessed One" in the first verse comes from both John 12:13 and Psalm 118:26 ("Blessed is he who comes in the name of the LORD!"). "The King of glory" from Psalm 24 seems to be the source for "All glory, laud, and honor / To You, Redeemer, King" in the refrain, although - as a whole - the cited portion also describes Jesus' entry into Jerusalem.