These people had been baptized in the name of the Lord Jesus, but the Holy Spirit had not yet come down on any of them. This is why Peter and John prayed.
Peter said to them, “Change your hearts and lives and be baptized, each one of you, in the name of Jesus Christ. Then God will forgive your sins, and you will receive the gift of the Holy Spirit.
So Peter told them to baptize Cornelius and his relatives and friends in the name of Jesus Christ. Then they asked Peter to stay with them for a few days.