"The lover of self is a transgressor of the law. This Jesus desired to reveal to the young man, and He gave him a test that would make manifest the selfishness of his heart. He showed him the plague spot in his character. The young man desired no further enlightenment. He had cherished an idol in the soul; the world was his god. He professed to have kept the commandments, but he was destitute of the principle which is the very spirit and life of them all. He did not possess true love for God or man. This want was the want of everything that would qualify him to enter the kingdom of heaven. In his love of self and worldly gain he was out of harmony with the principles of heaven. COL 392.1"
"Love not the world, neither the things that are in the world. If any man love the world, the love of the Father is not in him."
Both passages address the conflict between love of the world/self and obedience to God's law. EGW elaborates on the principle found in 1 John 2:15 within the context of the rich young ruler.
"When this young ruler came to Jesus, his sincerity and earnestness won the Saviour's heart. He “beholding him loved him.” In this young man He saw one who might do service as a preacher of righteousness. He would have received this talented and noble youth as readily as He received the poor fishermen who followed Him. Had the young man devoted his ability to the work of saving souls, he might have become a diligent and successful laborer for Christ. COL 392.2"
"Then Jesus beholding him loved him, and said unto him, One thing thou lackest: go thy way, sell whatsoever thou hast, and give to the poor, and thou shalt have treasure in heaven: and come, take up the cross, and follow me."
EGW directly quotes Mark 10:21, demonstrating a clear and intentional connection to the biblical narrative.