Fnerb said:
Acts 2:38 - Peter replied, "Repent and be baptized, every one of you, in the name of Jesus Christ for the forgiveness of your sins. And you will receive the gift of the Holy Spirit.
What does scripture say about receiving the Holy Spirit?
John 7:38-39
38 He who believes in Me, as the Scripture has said, out of his heart will flow rivers of
living water." 39 But this He spoke concerning the Spirit, whom those believing in Him
would receive; for the Holy Spirit was not yet given, because Jesus was not yet glorified.
NKJV
Rom 8:9-11
10 And if Christ is in you, the body is dead because of sin, but the Spirit is life because of
righteousness. 11 But if the Spirit of Him who raised Jesus from the dead dwells in you, He
who raised Christ from the dead will also give life to your mortal bodies through His Spirit
who dwells in you.
NKJV
Rom 8:16-17
16 The Spirit Himself bears witness with our spirit that we are children of God, 17 and if
children, then heirs--heirs of God and joint heirs with Christ, if indeed we suffer with Him,
that we may also be glorified together.
NKJV
It is not the act of baptism that causes us to receive the Holy Spirit but it is calling upon God for salvation. Note that In Acts 10:47, we have a specific example of a person saved before water baptism.
Acts 10:46-48
Then Peter answered, 47 Can anyone forbid water, that these should not be baptized who have received the Holy Spirit just as we have?"
NKJV
Acts 22:16 - And now what are you waiting for? Get up, be baptized and wash your sins away, calling on his name.'
There are three things mentioned in this passage:
1) We are to arise and be baptized
2) We are to call upon the name of the Lord
3) We are to have our sins washed away.
Let's also look at Hebrews 9 which speaks of the that which cleanses us from sin:
Heb 9:11-15
11 But Christ came as High Priest of the good things to come, with the greater and more
perfect tabernacle not made with hands, that is, not of this creation. 12 Not with the blood
of goats and calves, but with His own blood He entered the Most Holy Place once for all,
having obtained eternal redemption. 13 For if the blood of bulls and goats and the ashes of
a heifer, sprinkling the unclean, sanctifies for the purifying of the flesh, 1 4 how much more
shall the blood of Christ, who through the eternal Spirit offered Himself without spot to
God, cleanse your conscience from dead works to serve the living God? 15 And for this
reason He is the Mediator of the new covenant, by means of death, for the redemption of the
transgressions under the first covenant, that those who are called may receive the promise
of the eternal inheritance.
NKJV
We see confirmation here that it is not the water that cleanses, but the blood of Christ sacrificed on the cross.