Psalm 23: "1 The LORD is my shepherd; I shall not want. 2 He makes me lie down in green pastures. He leads me beside still waters. 3 He restores my soul. He leads me in paths of righteousness for his name's sake.
"4 Even though I walk through the valley of the shadow of death, I will fear no evil, for you are with me; your rod and your staff, they comfort me.
"5 You prepare a table before me in the presence of my enemies; you anoint my head with oil; my cup overflows. 6 Surely goodness and mercy shall follow me all the days of my life, and I shall dwell in the house of the LORD forever."
John 10:1-16: "1 'Truly, truly, I say to you, he who does not enter the sheepfold by the door but climbs in by another way, that man is a thief and a robber. 2 But he who enters by the door is the shepherd of the sheep. 3 To him the gatekeeper opens. The sheep hear his voice, and he calls his own sheep by name and leads them out. 4 When he has brought out all his own, he goes before them, and the sheep follow him, for they know his voice. 5 A stranger they will not follow, but they will flee from him, for they do not know the voice of strangers.' 6 This figure of speech Jesus used with them, but they did not understand what he was saying to them.
"7 So Jesus again said to them, 'Truly, truly, I say to you, I am the door of the sheep. 8 All who came before me are thieves and robbers, but the sheep did not listen to them. 9 I am the door. If anyone enters by me, he will be saved and will go in and out and find pasture. 10 The thief comes only to steal and kill and destroy. I came that they may have life and have it abundantly. 11 I am the good shepherd. The good shepherd lays down his life for the sheep. 12 He who is a hired hand and not a shepherd, who does not own the sheep, sees the wolf coming and leaves the sheep and flees, and the wolf snatches them and scatters them. 13 He flees because he is a hired hand and cares nothing for the sheep. 14 I am the good shepherd. I know my own and my own know me, 15 just as the Father knows me and I know the Father; and I lay down my life for the sheep. 16 And I have other sheep that are not of this fold. I must bring them also, and they will listen to my voice. So there will be one flock, one shepherd.'"
Ephesians 2:4-5: "4 But God, being rich in mercy, because of the great love with which he loved us, 5 even when we were dead in our trespasses, made us alive together with Christ - by grace you have been saved"
Romans 5:8: "but God shows his love for us in that while we were still sinners, Christ died for us."
+++
The text is public domain:
1 Savior, like a shepherd lead us;Much we need Your tender care.In Your pleasant pastures feed us,For our use Your fold prepare.Blessed Jesus, blessed Jesus,You have bought us; we are Yours.Blessed Jesus, blessed Jesus,You have bought us; we are Yours.2 We are Yours; in love befriend us,Be the guardian of our way;Keep Your flock, from sin defend us,Seek us when we go astray.Blessed Jesus, blessed Jesus,Hear us children when we pray.Blessed Jesus, blessed Jesus,Hear us children when we pray.3 You have promised to receive us,Poor and sinful though we be;You have mercy to relieve us,Grace to cleanse, and pow'r to free.Blessed Jesus, blessed Jesus,Early let us turn to You.Blessed Jesus, blessed Jesus,Early let us turn to You.4 Early let us seek Your favor,Early let us do Your will;Blessed Lord and only Savior,With Your love our spirits fill.Blessed Jesus, blessed Jesus,You have loved us, love us still.Blessed Jesus, blessed Jesus,You have loved us, love us still.
+++
The shepherd imagery in Psalm 23 and the passage from John 10 appears in the first two verses. The first verse draws a bit more from Psalm 23 (particularly the line "In Your pleasant pastures feed us," which comes from Psalm 23:2), and the second verse draws a bit more from John 10.
Romans 5:8 seems to appear in the lines "You have promised to receive us, / Poor and sinful though we be" at the beginning of the third verse, although this also bears some resemblance to John 6:37: "'All that the Father gives me will come to me, and whoever comes to me I will never cast out.'" The passage from Ephesians appears in the second half of the third verse: "You have mercy to relieve us, / Grace to cleanse, and pow'r to free."
+++
The line "You have bought us; we are Yours" at the end of the first verse may come from 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 line "Seek us when we go astray" in the second verse may refer to the Parable of the Lost Sheep (Luke 15:3-7).
+++
The phrase "pleasant pastures" in the first verse has alliteration and syllabic balance, and this euphony matches that "pleasant" description.