1 Corinthians 11:23-26: "23 For I received from the Lord what I also delivered to you, that the Lord Jesus on the night when he was betrayed took bread, 24 and when he had given thanks, he broke it, and said, 'This is my body which is for you. Do this in remembrance of me.' 25 In the same way also he took the cup, after supper, saying, 'This cup is the new covenant in my blood. Do this, as often as you drink it, in remembrance of me.' 26 For as often as you eat this bread and drink the cup, you proclaim the Lord's death until he comes."
John 6:35: "Jesus said to them, 'I am the bread of life; whoever comes to me shall not hunger, and whoever believes in me shall never thirst.'"
John 6:48-58: "48 'I am the bread of life. 49 Your fathers ate the manna in the wilderness, and they died. 50 This is the bread that comes down from heaven, so that one may eat of it and not die. 51 I am the living bread that came down from heaven. If anyone eats of this bread, he will live forever. And the bread that I will give for the life of the world is my flesh.'
"52 The Jews then disputed among themselves, saying, 'How can this man give us his flesh to eat?' 53 So Jesus said to them, 'Truly, truly, I say to you, unless you eat the flesh of the Son of Man and drink his blood, you have no life in you. 54 Whoever feeds on my flesh and drinks my blood has eternal life, and I will raise him up on the last day. 55 For my flesh is true food, and my blood is true drink. 56 Whoever feeds on my flesh and drinks my blood abides in me, and I in him. 57 As the living Father sent me, and I live because of the Father, so whoever feeds on me, he also will live because of me. 58 This is the bread that came down from heaven, not like the bread the fathers ate and died. Whoever feeds on this bread will live forever.'"
1 Peter 1:18-19: "18 knowing that you were ransomed from the futile ways inherited from your forefathers, not with perishable things such as silver or gold, 19 but with the precious blood of Christ, like that of a lamb without blemish or spot."
+++
The text is public domain:
O living Bread from heaven,How well You feed Your guest!The gifts that You have givenHave filled my heart with rest.Oh, wondrous food of blessing,Oh, cup that heals our woes!My heart, this gift possessing,With praises overflows.
My Lord, You here have led meTo this most holy placeAnd with Yourself have fed meThe treasures of Your grace;For You have freely givenWhat earth could never buy,The bread of life from heaven,That now I shall not die.
You gave me all I wanted;This food can death destroy.And You have freely grantedThe cup of endless joy.My Lord, I do not meritThe favor You have shown,And all my soul and spiritBow down before Your throne.
Lord, grant me then, thus strengthenedWith heav'nly food, while hereMy course on earth is lengthened,To serve with holy fear.And when You call my spiritTo leave this world below,I enter, through Your merit,Where joys unmingled flow.
+++
1 Corinthians 11:23-26 and the passages from John 6 (which overlap to some degree) are the main sources for the hymn and appear throughout.
1 Peter 1:18-19 isn't as clear. The lines "For You have freely given / What earth could never buy" in the second verse, "My Lord, I do not merit / The favor You have shown" in the third verse, and "I enter, through Your merit, / Where joys unmingled flow" in the fourth verse seem to be the likeliest possibilities.