A very illustrative example of the way in which the holy spirit influences a person can be clearly seen in King David. About his anointing with the spirit of God the Bible tells us:
1 Sam. 16:13 So Samuel took the horn of oil and anointed him in the presence of his brothers. And the spirit of Jehovah began to empower David from that day forward. Samuel later rose and went his way to Raʹmah.
Did you notice how David received the anointing from Jehovah? A prophet of Jehovah, authorized and sent by Jehovah himself, performed a formal anointing so that David would be recognized as an approved person of Jehovah and his holy spirit or power would begin to act on the young man. Could anyone think according to this account that the spirit of Jehovah is a person?
David was an imperfect human being. The Bible does not cover up some of his serious mistakes that he committed against God. One such mistake was causing the death of one of his men in order to keep his wife...After a prophet of Jehovah named Nathan came to him with a message from Jehovah about his act, David recognized his sin, and feared that Jehovah will remove His holy spirit from him and he will no longer be influenced by that spirit in his life. In one of his Psalms this prayer is collected, in Psal.51... which in part says:
Psal. 51:11 Do not cast me out from your presence;
And do not take your holy spirit away from me.
We can read in the Scriptures how the holy spirit influenced David. One of the achievements of the spirit of God in him was to inspire David to produce many writings that today form part of the inspired Scriptures of God.
Acts 1:15 During those days Peter stood up in the midst of the brothers (the number of people was altogether about 120) and said: 16 “Men, brothers, it was necessary for the scripture to be fulfilled that the holy spirit spoke prophetically through David about Judas, who became a guide to those who arrested Jesus (See Sal.41:9 and 55:12).
... also:
Acts 4:24 On hearing this, they raised their voices with one accord to God and said:
“Sovereign Lord, you are the One who made the heaven and the earth and the sea and all the things in them, 25 and who said through holy spirit by the mouth of our forefather David, your servant: ‘Why did nations become agitated and peoples meditate on empty things? 26 The kings of the earth took their stand and the rulers gathered together as one against Jehovah and against his anointed one.’ 27 For truly both Herod and Pontius Pilate with men of the nations and with peoples of Israel were gathered together in this city against your holy servant Jesus, whom you anointed, 28 to do what your hand and counsel had determined beforehand to occur. 29 And now, Jehovah, give attention to their threats, and grant to your slaves to keep speaking your word with all boldness, 30 while you stretch out your hand for healing and while signs and wonders occur through the name of your holy servant Jesus." (See Ps.2:1,2).
Notice that the holy spirit spoke "by/through (the mouth of) David" (Acts 1:16; 4:25)... It is easy to see that the holy spirit is the spirit of Jehovah. If there is anything that the holy spirit says, speaks, etc, it is that Jehovah is speaking through his own holy spirit... IT IS NOT that there is an independent person called the Holy Spirit who is speaking for himself (John 14:26; 16:13).