Jesus answered, "Most assuredly I tell you, unless one is born of water and spirit, he can't enter into the Kingdom of God!
Thus, in that passage, the baptism of penitent believers is made to be a prior condition of receiving the remission of sins and the indwelling of the Holy Spirit; and in this also appears why the Holy Spirit is called the "Holy Spirit of promise"  (Ephesians 1:13).