David was a man after God's own heart. (Acts 13:22)
God took the Spirit from Saul who was king and gave HIS Spirit to David and God had the prophet Samuel to anoint David as king and God removed Saul from being king.
At one point, David greatly sinned, and David prayed:
Psalm 51
3 For I acknowledge my transgressions: and my sin is ever before me.
4 Against THEE, THEE only, have I sinned, and done this evil in THY sight: that thou mightest be justified when thou speakest, and be clear when thou judgest.
5 Behold, I was shapen in iniquity; and in sin did my mother conceive me.
6 Behold, THOU desirest truth in the inward parts: and in the hidden part THOU shalt make me to know wisdom.
7 Purge me with hyssop, and I shall be clean: wash me, and I shall be whiter than snow.
8 Make me to hear joy and gladness; that the bones which THOU hast broken may rejoice.
9 Hide THY face from my sins, and blot out all mine iniquities.
10 Create in me a clean heart, O God; and renew a right spirit within me.
11 Cast me not away from THY presence; and take not THY Holy Spirit from me.
12 Restore unto me the joy of THY salvation; and uphold me with THY free spirit.
💥💥💥
As long as we have living in us God's Holy Spirit, we have what we need to be able to go forward. For it is the Holy Spirit who guides us into all truth, teaches us all things, reminds us of all Jesus has said, shows us the will of God, and even shows us that which is to come by the will of God.
John 14:26 Jesus says: But the Comforter, which is the Holy Ghost, whom the Father will send in MY name, HE shall teach you all things, and bring all things to your remembrance, whatsoever I have said unto you.
John 16:13 Howbeit when HE, the Spirit of truth, is come, HE will guide you into all truth: for HE shall not speak of HIMSELF; but whatsoever HE shall hear (from God), that shall HE speak: and HE will shew you things to come.
I Corinthians 2
10 But God hath revealed them unto us by HIS Spirit: for the Spirit searcheth all things, yea, the deep things of God.
11 For what man knoweth the things of a man, save the spirit of man which is in him? even so the things of God knoweth no man, but the Spirit of God.
12 Now we have received, not the spirit of the world, but the Spirit which is of God; that we might know the things that are freely given to us of God.
13 Which things also we speak, not in the words which man's wisdom teacheth, but which the Holy Ghost teacheth; comparing spiritual things with spiritual.
14 But the natural man receiveth not the things of the Spirit of God: for they are foolishness unto him: neither can he know them, because they are spiritually discerned.
💥💥💥
The apostle Paul says:
II Corinthians13:5
Examine yourselves, whether ye be in the faith; prove your own selves. Know ye not your own selves, how that Jesus Christ is in you, except ye be reprobates?
We know we still have the Holy Spirit of Jesus living in us when we witness HIM doing the work of God through us.
💥💥💥💥💥