Psalm 24:3-10: "Who shall ascend the hill of the LORD? And who shall stand in his holy place? He who has clean hands and a pure heart, who does not lift up his soul to what is false and does not swear deceitfully. He will receive blessing from the LORD and righteousness from the God of his salvation. Such is the generation of those who seek him, who seek the face of the God of Jacob.
"Lift up your heads, O gates! And be lifted up, O ancient doors, that the King of glory may come in. Who is this King of glory? The LORD, strong and mighty, the LORD, mighty in battle! Lift up your heads, O gates! And lift them up, O ancient doors, that the King of glory may come in. Who is this King of glory? The LORD of hosts, he is the King of glory!"
Revelation 5:6-14: "And between the throne and the four living creatures and among the elders I saw a Lamb standing, as though it had been slain, with seven horns and with seven eyes, which are the seven spirits of God sent out into all the earth. And he went and took the scroll from the right hand of him who was seated on the throne. And when he had taken the scroll, the four living creatures and the twenty-four elders fell down before the Lamb, each holding a harp, and golden bowls full of incense, which are the prayers of the saints. And they sang a new song, saying,
"'Worthy are you to take the scroll and to open its seals, for you were slain, and by your blood you ransomed people for God from every tribe and language and people and nation, and you have made them a kingdom and priests to our God, and they shall reign on the earth.'
"Then I looked, and I heard around the throne and the living creatures and the elders the voice of many angels, numbering myriads of myriads and thousands of thousands, saying with a loud voice, 'Worthy is the Lamb who was slain, to receive power and wealth and wisdom and might and honor and glory and blessing!' And I heard every creature in heaven and on earth and under the earth and in the sea, and all that is in them, saying, 'To him who sits on the throne and the Lamb be blessing and honor and glory and might forever and ever!' And the four living creatures said, 'Amen!' and the elders fell down and worshiped."
The hymn text is pretty clearly divided as far as its Biblical references. The first three verses come from the Psalm text. There are matching phrases (if not exact in specific words) like "Lift up your heads, you everlasting doors," "Who is this King of great and glorious fame," and "Who may ascend Mount Zion's holy hill."
The fourth verse comes from the Revelation text, although it seems that "the ransomed throng" and their "endless song" of "'Worthy is Christ!' The Lamb who once was slain" are the only elements in the hymn taken from the lengthy selection that's cited.
+++
The hymnal doesn't cite any of the Biblical accounts of Jesus' entrance into Jerusalem (Matthew 21:1-16, Mark 11:1-11, and Luke 19:28-40), but it's clearly referred to in phrases like "Greet your coming King; / Now wave the victor's palm," " Lord God of Sabaoth, / Of whom the prophets wrote, / Whose chosen, humble steed / Declares Him king indeed!" and "Hosanna, Lord!"