Isaiah 60:1-3: "1 Arise, shine, for your light has come, and the glory of the LORD has risen upon you. 2 For behold, darkness shall cover the earth, and thick darkness the peoples; but the LORD will arise upon you, and his glory will be seen upon you. 3 And nations shall come to your light, and kings to the brightness of your rising."
Luke 1:78-79: "78 'because of the tender mercy of our God, whereby the sunrise shall visit us from on high 79 to give light to those who sit in darkness and in the shadow of death, to guide our feet into the way of peace.'"
John 8:12: "12 Again Jesus spoke to them, saying, 'I am the light of the world. Whoever follows me will not walk in darkness, but will have the light of life.'"
Ephesians 5:8-14: "8 for at one time you were darkness, but now you are light in the Lord. Walk as children of light 9 (for the fruit of light is found in all that is good and right and true), 10 and try to discern what is pleasing to the Lord. 11 Take no part in the unfruitful works of darkness, but instead expose them. 12 For it is shameful even to speak of the things that they do in secret. 13 But when anything is exposed by the light, it becomes visible, 14 for anything that becomes visible is light. Therefore it says, 'Awake, O sleeper, and arise from the dead, and Christ will shine on you.'"
+++
The text is public domain:
1 O Christ, our true and only light,Enlighten those who sit in night;Let those afar now hear Your voiceAnd in Your fold with us rejoice.2 Fill with the radiance of Your graceThe souls now lost in error's maze;Enlighten those whose inmost mindsSome dark delusion haunts and blinds.3 O gently call those gone astrayThat they may find the saving way!Let ev'ry conscience sore oppressedIn You find peace and heav'nly rest.4 Shine on the darkened and the cold;Recall the wand'rers to Your fold.Unite all those who walk apart;Confirm the weak and doubting heart,5 That they with us may evermoreSuch grace with wond'ring thanks adoreAnd endless praise to You be giv'nBy all Your Church in earth and heav'n.
+++
All of the cited passages mention light, which is the main image of the hymn, so it's difficult to say whether any given part of the hymn text comes from one passage rather than an-other. John 8:12 is clearly the basis for the first line, however: "O Christ, our true and only light."