John 14:16-17 "And I will pray the Father, and He will give you another Helper, that He may abide with you forever- the Spirit of truth, whom the world cannot receive, because it neither sees Him nor knows Him; but you know Him, for He dwells with you and will be in you."
Since mankind always rebelled against God during the days of the Patriarchs, God decided that He should dwell in the physical body of man in order to assist him to overcome the flesh and the devil's temptations. So God anointed the kings, priests, prophets, etc. to serve Him by sending the Spirit of God to dwell in them. [This is equivalent to the indwelling of the Holy Spirit as a seal of redemption of a new Christian]. So whenever the Spirit of the Lord was upon any of the anointed, they could perform signs and wonders. [Today, when a Christian is filled with the Holy Spirit, he too can perform miracles in faith, healing, prophecy, speak in tongues, cast out demons, etc.]
Jer 23:11,13-14 "For both prophet and priest are profane; Yes, in My house I have found their wickedness," says the Lord.... And I have seen folly in the prophets of Samaria: They prophesied by Baal and caused My people Israel to err. Also I have seen a horrible thing in the prophets of Jerusalem: They commit adultery and walk in lies; they also strengthen the hands of evildoers, so that no one turns back from his wickedness. All of them are like Sodom to Me, and her inhabitants like Gomorrah."
Similarly, today many of these so-called anointed (supposedly having the Holy Spirit) but depraved teachers, pastors, televangelists, church leaders, prophets, etc. for personal gains, will deceive ignorant Christians by filling them with false prophecies, wrong teachings, deceptions, lies, distorted truth, abominations and heresies leading to pride and self-glorification thus resulting to none of them repenting of their wickedness.
1 Sam 16:14 But the Spirit of the LORD departed from Saul, and an evil spirit from the LORD troubled him.
Similarly, when the Holy Spirit (seal of redemption) can no longer bear the Christian's continuous wickedness in deceptions, heresies, blasphemies, lies, abominations, evil deeds, worldliness, etc. (which are foul, nauseating and extremely revolting to God), the Holy Spirit will leave this Christian, then this Christian has lost his salvation.
Brethren, when we walk this narrow and difficult path to eternal life, we will make many mistakes by our negligence of not seeking or trusting His guidance or approvals. We thank our Lord Jesus Christ that whenever we repent of our sins, He is righteous and faithful and will forgive us of all our sins and iniquities. With our sins cleansed the Holy Spirit dwelling in us will no longer be grieved, so that He can continue to do His wonderful and beautiful work in us.