"Follow after charity, and
desire spiritual gifts, but rather that ye may prophesy." ( I Cor 14:1)
Discernment and discerning of spirits are different.
Discerning of spirits is under the direction of the Holy Spirit. "4 Now there are diversities of gifts, but the same Spirit." (I Cor 12:4) " To another the working of miracles; to another prophecy; to another discerning of spirits; to another divers kinds of tongues; to another the interpretation of tongues:" v 10
Discerning of spirits -distinguishes the source - either evil or Godly spirits One example -. Even though Ananias took the money and "laid it at the apostles' feet." "But Peter said, Ananias, why hath Satan filled thine heart to lie to the Holy Ghost, and to keep back part of the price of the land?" (
Acts 5:3) The same for his wife (v 9) Another example - girl followed Paul "and cried out, saying, “These men are the servants of the Most High God, who proclaim to us the way of salvation.” 18 And this she did for many days." Even though she spoke the truth, she had the spirit of divination and Paul cast it out. (Acts 16).
It's not the discerning of evil spirits only.
Then here's an example of the Godly - "And when James, Cephas, and John, who seemed to be pillars, perceived the grace that was given unto me, they gave to me and Barnabas the right hands of fellowship; that we should go unto the heathen, and they unto the circumcision." (
Gal 2:9).