After the people heard Paul say this, they were baptized in the name of the Lord Jesus.
Before this, the Holy Spirit had not been given to any of them, though some of them had been baptized in the name of the Lord Jesus.
But when they believed what Philip was saying about God's kingdom and about the name of Jesus Christ, they were all baptized.
Peter said to them, “Turn to God 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.
This was like being baptized and becoming followers of Moses.
Peter ordered them to be baptized in the name of Jesus Christ, and they asked him to stay on for a few days.