Deuteronomy 10:12: "'And now, Israel, what does the LORD your God require of you, but to fear the LORD your God, to walk in all his ways, to love him, to serve the LORD your God with all your heart and with all your soul'"
Galatians 5:22-26: "22 But the fruit of the Spirit is love, joy, peace, patience, kindness, goodness, faithfulness, 23 gentleness, self-control; against such things there is no law. 24 And those who belong to Christ Jesus have crucified the flesh with its passions and desires.
"25 If we live by the Spirit, let us also walk by the Spirit. 26 Let us not become conceited, provoking one another, envying one another."
Matthew 25:40: "'And the King will answer them, "Truly, I say to you, as you did it to one of the least of these my brothers, you did it to me."'"
Luke 10:36-37: "36 'Which of these three, do you think, proved to be a neighbor to the man who fell among the robbers?' 37 He said, 'The one who showed him mercy.' And Jesus said to him, 'You go, and do likewise.'"
+++
The text is public domain:
1 O God of mercy, God of might,In love and pity infinite,Teach us, as ever in Thy sight,To live our lives in Thee.2 And Thou, who cam'st on earth to dieThat our lost world might live thereby,O hear us; for to Thee we cry,In hope, O Lord, to Thee.3 Teach us the lesson Thou hast taught:To feel for those Thy blood hath bought,That ev'ry word and deed and thoughtMay work a work for Thee.4 All are redeemed, both far and wide,Since Thou, O Lord, for all hast died.Grant us the will and grace provideTo love them all in Thee!5 In sickness, sorrow, want, or care,May we each other's burdens share;May we, where help is needed, thereGive help as unto Thee!6 And may Thy Holy Spirit moveAll those who live to live in loveTill Thou shalt greet in heav'n aboveAll those who live in Thee.
+++
Deuteronomy 10:12 (primarily "to walk in all his ways") appears most clearly at the ends of the first and sixth verses ("Teach us... To live our lives in Thee" and "All those who live in Thee"), but "serv[ing] the LORD your God with all your heart and with all your soul" also overlaps with the passages from Matthew 25:40 and Luke 10:36-37.
Galatians 5:22-26 is the basis for the first half of the sixth verse ("And may Thy Holy Spirit move / All those who live to live in love").
Matthew 25:40 is expanded upon in the fifth verse ("May we... Give help as unto Thee!"), and Luke 10:36-37 is the basis for the second half of the fourth verse ("Grant us the will and grace provide / To love them all in Thee!").