Question: “What is the spiritual gift of prophecy?”

Answer: The spiritual gift of prophecy is listed among the gifts of the Spirit in 1 Corinthians 12:10 and Romans 12:6. The Greek word translated “prophesying” or “prophecy” in both passages properly means to “speak forth” or declare the divine will, to interpret the purposes of God, or to make known in any way the truth of God which is designed to influence people. Many people misunderstand the gift of prophecy to be the ability to predict the future. While knowing something about the future may sometimes have been an aspect of the gift of prophecy, it was primarily a gift of proclamation (“forth-telling”), not prediction (“fore-telling”).
A pastor/preacher who declares the Bible can be considered a “prophesier” in that he is speaking forth the counsel of God. With the completion of the New Testament canon, prophesying changed from declaring new revelation to declaring the completed revelation God has already given. Jude 3 speaks of “the faith which was once delivered unto the saints” (emphasis added). In other words, the faith to which we hold has been settled forever, and it does not need the addition or refinement that comes from extra-biblical revelations.
Also, note the transition from prophet to teacher in 2 Peter 2:1: “There were false prophets among the people, even as there shall be false teachers among you” (emphasis added). Peter indicates that the Old Testament age had prophets, whereas the church will have teachers. The spiritual gift of prophecy, in the sense of receiving new revelations from God to be proclaimed to others, ceased with the completion of the Bible. During the time that prophecy was a revelatory gift, it was to be used for the edification, exhortation, and comfort of men (1 Corinthians 14:3). The modern gift of prophecy, which is really more akin to teaching, still declares the truth of God. What has changed is that the truth of God today has already been fully revealed in His Word, while, in the early church, it had not yet been fully revealed.
Christians are to be very wary of those who claim to have a “new” message from God. It is one thing to say, “I had an interesting dream last night.” However, it is quite another matter to say, “God gave me a dream last night, and you must obey it.” No utterance of man should be considered equal to or above the written Word. We must hold to the Word that God has already given and commit ourselves to sola scriptura—Scripture alone.”
READ MORE:
https://www.gotquestions.org/gift-of-prophecy.html