John 2:1-11: "1 On the third day there was a wedding at Cana in Galilee, and the mother of Jesus was there. 2 Jesus also was invited to the wedding with his disciples. 3 When the wine ran out, the mother of Jesus said to him, 'They have no wine.' 4 And Jesus said to her, 'Woman, what does this have to do with me? My hour has not yet come.' 5 His mother said to the servants, 'Do whatever he tells you.'
"6 Now there were six stone water jars there for the Jewish rites of purification, each holding twenty or thirty gallons. 7 Jesus said to the servants, 'Fill the jars with water.' And they filled them up to the brim. 8 And he said to them, 'Now draw some out and take it to the master of the feast.' So they took it. 9 When the master of the feast tasted the water now become wine, and did not know where it came from (though the servants who had drawn the water knew), the master of the feast called the bridegroom 10 and said to him, 'Everyone serves the good wine first, and when people have drunk freely, then the poor wine. But you have kept the good wine until now.' 11 This, the first of his signs, Jesus did at Cana in Galilee, and manifested his glory. And his disciples believed in him."
Revelation 19:7-9: "7 Let us rejoice and exult and give him the glory, for the marriage of the Lamb has come, and his Bride has made herself ready; 8 it was granted her to clothe herself with fine linen, bright and pure' - for the fine linen is the righteous deeds of the saints.
"9 And the angel said to me, 'Write this: Blessed are those who are invited to the marriage supper of the Lamb.' And he said to me, 'These are the true words of God.'"
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."
+++
The John 2 text is the main referent for the hymn, which almost combines Jesus' turning water to wine at the wedding at Cana with the Lord's Supper and the idea of the marriage feast of the Lamb. John 2 is found mostly in the first three verses, in phrases like "Come, join in Cana's feast," "The old wine now is gone / From jars that stand apart," and "But Christ, the Word made flesh, / Bids water turn to wine" (although "the Word made flesh" comes from John 1:14).
The other two texts seem to be combined into the fourth verse:
Come, friends, and share the feast;
Here drink the wine supplied
By Him who is both guest and host -
For us, the crucified.