Now when they had testified and spoken the word of the Lord, they returned to Jerusalem, preaching the gospel to many villages of the Samaritans.
Acts 8:25 ESV

Peter and John had apparently accepted the Samaritans as Israelites since they were willing to preach the gospel to them before God had revealed to Peter that believing gentiles were made acceptable by God because of their faith.