Psalm 103:20-21: "20 Bless the LORD, O you his angels, you mighty ones who do his word, obeying the voice of his word! 21 Bless the LORD, all his hosts, his ministers, who do his will! 22 Bless the LORD, all his works, in all places of his dominion. Bless the LORD, O my soul!"
Hebrews 1:14: "Are they [the angels] not all ministering spirits sent out to serve for the sake of those who are to inherit salvation?"
Job 38:4-7: "4 'Where were you when I laid the foundation of the earth? Tell me, if you have understanding. 5 Who determined its measurements - surely you know! Or who stretched the line upon it? 6 On what were its bases sunk, or who laid its cornerstone, 7 when the morning stars sang together and all the sons of God shouted for joy?'"
Revelation 5:13: "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 to the Lamb be blessing and honor and glory and might forever and ever!'"
+++
The text is public domain:
Stars of the morning, so gloriously bright,
Angels in heaven, resplendent in light,
These, where no darkness the glory can dim,
Praise the Thrice Holy One, serving but Him.
These are Your ministers, these are Your own,
Lord God of Sabaoth, nearest Your throne;
These are Your messengers, these whom You send,
Helping Your helpless ones, Helper and Friend.
Then, when the earth was first poised in mid-space,
Then, when the planets first sped on their race,
Then, when were ended the six days' employ,
Then all the sons of God shouted for joy.
Still let them aid us and still let them fight,
Lord of angelic hosts, battling for right,
Till, where their anthems they ceaselessly pour,
We with the angels may bow and adore.
+++
Generally speaking, each verse in this hymn is taken from one of the cited passages. The first verse comes from the passage from Psalm 103; the second from Hebrews 1:14; the third from Job 38; and the fourth from Revelation 5. There are some exceptions, however. "Stars of the morning" at the beginning of the hymn is taken from Job 38:7. "Nearest Your throne" in the second verse might also draw a bit from Revelation 5, and some details in the third verse (especially "the six days' employ") come from Genesis 1.