John 16:13 and 15  “Howbeit when he, the Spirit of truth, is come, he will guide you into all truth: for he shall not speak of himself; but whatsoever he shall hear, that shall he speak: and he will shew you things to come. . . .  All things that the Father hath are mine: therefore said I, that he shall take of mine, and shall shew it unto you.”

The Holy Spirit guides us into all truth, including the truth about Christ, about prophecy, and about the nature of the Bible itself. The true people of God collectively have always known what the words of the Bible are, so that corruption has been kept out of the Bible; thus we have the preserved Word of God today.