"Chapter 54—The Good Samaritan This chapter is based on Luke 10:25-37 . In the story of the good Samaritan, Christ illustrates the nature of true religion. He shows that it consists not in systems, creeds, or rites, but in the performance of loving deeds, in bringing the greatest good to others, in genuine goodness. DA 497"
"And, behold, a certain lawyer stood up, and tempted him, saying, Master, what shall I do to inherit eternal life? He said unto him, What is written in the law? how readest thou? And he answering said, Thou shalt love the Lord thy God with all thy heart, and with all thy soul, and with all thy strength, and with all thy mind; and thy neighbour as thyself. And he said unto him, Thou hast answered right: this do, and thou shalt live. But he, willing to justify himself, said unto Jesus, And who is my neighbour? And Jesus answering said, A certain man went down from Jerusalem to Jericho, and fell among thieves, which stripped him of his raiment, and wounded him, and departed, leaving him half dead. And by chance there came down a certain priest that way: and when he saw him, he passed by on the other side. And likewise a Levite, when he was at the place, came and looked on him, and passed by on the other side. But a certain Samaritan, as he journeyed, came where he was: and when he saw him, he had compassion on him, And went to him, and bound up his wounds, pouring in oil and wine, and set him on his own beast, and brought him to an inn, and took care of him. And on the morrow when he departed, he took out two pence, and gave them to the host, and said unto him, Take care of him; and whatsoever thou spendest more, when I come again, I will repay thee. Which now of these three, thinkest thou, was neighbour unto him that fell among the thieves? And he said, He that shewed mercy on him. Then said Jesus unto him, Go, and do thou likewise."
Ellen White directly references Luke 10:25-37 in this passage.
"As Christ was teaching the people, “a certain lawyer stood up, and tempted Him, saying, Master, what shall I do to inherit eternal life?” With breathless attention the large congregation awaited the answer. The priests and rabbis had thought to entangle Christ by having the lawyer ask this question. But the Saviour entered into no controversy. He required the answer from the questioner himself. “What is written in the law?” He said; “how readest thou?” The Jews still accused Jesus of lightly regarding the law given from Sinai; but He turned the question of salvation upon the keeping of God's commandments. DA 497.2"
"And, behold, a certain lawyer stood up, and tempted him, saying, Master, what shall I do to inherit eternal life?"
EGW directly references and paraphrases Luke 10:25.
"The lawyer said, “Thou shalt love the Lord thy God with all thy heart, and with all thy soul, and with all thy strength, and with all thy mind; and thy neighbor as thyself.” Jesus said, “Thou hast answered right: this do, and thou shalt live.” DA 497.3"
"And he answering said, Thou shalt love the Lord thy God with all thy heart, and with all thy soul, and with all thy strength, and with all thy mind; and thy neighbour as thyself."
EGW directly quotes Luke 10:27.
"The lawyer was not satisfied with the position and works of the Pharisees. He had been studying the Scriptures with a desire to learn their real meaning. He had a vital interest in the matter, and had asked in sincerity, “What shall I do?” In his answer as to the requirements of the law, he passed by all the mass of ceremonial and ritualistic precepts. For these he claimed no value, but presented the two great principles on which hang all the law and the prophets. This answer, being commended by Christ, placed the Saviour on vantage ground with the rabbis. They could not condemn Him for sanctioning that which had been advanced by an expositor of the law. DA 497.4"
"On these two commandments hang all the law and the prophets."
EGW is referencing the same concept and using similar language as Matthew 22:40, although not a direct quote. The connection is clear and intentional.