James 2:18-20 (New American Standard Bible)
18But someone may well say, "You have faith and I have works; show me your faith without the works, and I will show you my faith by my works."
19You believe that God is one You do well; the demons also believe, and shudder.
20But are you willing to recognize, you foolish fellow, that faith without works is useless?
Matthew 7:15-23
15"Beware of the false prophets, who come to you in sheep's clothing, but inwardly are ravenous wolves.
16"You will know them by their fruits. Grapes are not gathered from thorn bushes nor figs from thistles, are they?
17"So every good tree bears good fruit, but the bad tree bears bad fruit.
18"A good tree cannot produce bad fruit, nor can a bad tree produce good fruit.
19"Every tree that does not bear good fruit is cut down and thrown into the fire.
20"So then, you will know them by their fruits.
21"Not everyone who says to Me, 'Lord, Lord,' will enter the kingdom of heaven, but he who does the will of My Father who is in heaven will enter.
22"Many will say to Me on that day, 'Lord, Lord, did we not prophesy in Your name, and in Your name cast out demons, and in Your name perform many miracles?'
23"And then I will declare to them, 'I never knew you; DEPART FROM ME, YOU WHO PRACTICE LAWLESSNESS.'
Salvation is not earned, but it does bring results. Jesus is not just a Savior. He is Lord; King of kings; Lord of lords.
A plumber can save you from a busted pipe. An electrician can save you from an electrical short. But you do not carry on a personal relationship with them (there may be rare exceptions).
Jesus is Lord. Recognizing that and submitting our will to His is part of the on going relationship. Without relationship; without Lordship, there is not salvation.