The baptism of the Holy Spirit can come into an individual's life in many ways.
Dr. Roberto Miranda(Audio: Spanish)
In First Samuel chapter 16 we see an interesting process where God had already chosen David to replace Saul when Saul became corrupted and began to worry more about himself, his public image, his reign and stopped being attentive to what God wanted from his life. That anointing was corrupted and God abandoned him, and took His Spirit from Saul, and then another person was sought, which in this case turned out to be David.
One wonders what was it that attracted God to David? One of the things we have to keep in mind is that, according to our heart God will move in our lives, according to the purity, the nobility of our heart, according to the disinterest that we show regarding our image, our reputation , our material interests. The Bible says that: "The eyes of God search all the earth seeking those of perfect heart towards Him, to show His favor over them."