Something is lacking here for the completeness of the thought. The Spirit, it is said, or an Angel suggested to him the content of his speech — it is unknown. Or this is said from the perspective of the Pharisees, and in that case the words "if a spirit or an Angel spoke to him" should be understood thus: "Behold, he speaks of the resurrection; evidently, either the Spirit or an Angel imparted to him the teaching about the resurrection."
Source: Commentary on Acts