The Holy spirit's work is a gift of God that is freely given on the basis of faith and faith only.
His Spirit is given to us to accomplish His purposes, not ours.
The Spirit cannot be bought or bargained for.
Acts 8 : 9-25
9But there was a certain man, called Simon, which beforetime in the same city used sorcery, and bewitched the people of Samaria, giving out that himself was some great one:
10To whom they all gave heed, from the least to the greatest, saying, This man is the great power of God.
11And to him they had regard, because that of long time he had bewitched them with sorceries.
12But when they believed Philip preaching the things concerning the kingdom of God, and the name of Jesus Christ, they were baptized, both men and women.
13Then Simon himself believed also: and when he was baptized, he continued with Philip, and wondered, beholding the miracles and signs which were done.
14Now when the apostles which were at Jerusalem heard that Samaria had received the word of God, they sent unto them Peter and John:
15Who, when they were come down, prayed for them, that they might receive the Holy Ghost:
16(For as yet he was fallen upon none of them: only they were baptized in the name of the Lord Jesus.)
17Then laid they their hands on them, and they received the Holy Ghost.
18And when Simon saw that through laying on of the apostles' hands the Holy Ghost was given, he offered them money,
19Saying, Give me also this power, that on whomsoever I lay hands, he may receive the Holy Ghost.
20But Peter said unto him, Thy money perish with thee, because thou hast thought that the gift of God may be purchased with money.
21Thou hast neither part nor lot in this matter: for thy heart is not right in the sight of God.
22Repent therefore of this thy wickedness, and pray God, if perhaps the thought of thine heart may be forgiven thee.
23For I perceive that thou art in the gall of bitterness, and in the bond of iniquity.
24Then answered Simon, and said, Pray ye to the Lord for me, that none of these things which ye have spoken come upon me.
25And they, when they had testified and preached the word of the Lord, returned to Jerusalem, and preached the gospel in many villages of the Samaritans.