Acts 2:38

"And Peter said to them, "Repent and be baptized each of you in the name of Jesus Christ for the remission of sins and you will receive the gift of the Holy Spirit."

This passage teaches plainly that one's sins are remitted in baptism and the result is the reception of the Holy Spirit.