Matthew 7:7-8: "7 'Ask, and it will be given to you; seek, and you will find; knock, and it will be opened to you. 8 For everyone who asks receives, and the one who seeks finds, and to the one who knocks it will be opened.'"
Isaiah 65:24: "Before they call I will answer; while they are yet speaking I will hear."
1 John 5:14: "And this is the confidence that we have toward him, that if we ask anything according to his will he hears us."
Psalm 27:13-14: "13 I believe that I shall look upon the goodness of the LORD in the land of the living! 14 Wait for the LORD; be strong, and let your heart take courage; wait for the LORD!"
+++
Isaiah 65:24 appears in the lines "Before your mind is moved to pray, God listens and will hear" at the end of the first verse, although this may overlap a bit with 1 John 5:14 and even Matthew 7:7. 1 John 5:14 and Psalm 27:14 seem to be combined in the line "Wait, then, in quiet confidence" at the beginning of the third verse, and Psalm 27:14 by itself appears again in the line "On God in patience wait" in the fourth verse.
The passage from Matthew 7 may also be alluded to in the line "God's help will not be late" at the end of the fourth verse.
+++
This line "Be still, my soul, before the Lord," which occurs at the beginning of the first and fourth verses may come from the first part of Psalm 46:10: "'Be still, and know that I am God.'"
The line "You need not multiply your words" at the beginning of the second verse seems to refer to Matthew 6:7: "'And when you pray, do not heap up empty phrases as the Gentiles do, for they think that they will be heard for their many words.'"
The line "God knows your needs before you ask" in the third verse paraphrases part of Matthew 6:8 ("'Your Father knows what you need before you ask him.'"), and the following line "And works for what is best" may refer to Romans 8:28 ("And we know that for those who love God all things work together for good, for those who are called according to his purpose.") or even Genesis 50:20, where Joseph tells his brothers, "'As for you, you meant evil against me, but God meant it for good, to bring it about that many people should be kept alive, as they are today.'"