Discerning of spirits is one of the “knowledge” spiritual gifts. It can be used to determine the source of what appears to be manifestations of the power and speech gifts versus false signs. It is also used in identifying situations that need intercession.
So how do you develop the gift of discerning of spirits?
First of all, every single experience should be tested against the Word of God. If you think that you have this gift or if you want to develop this gift (we are told to desire the gifts,) it is very important to make reading, studying, and memorizing the Word of God part of your daily lifestyle. You have to have a solid foundation to work from.
It is also important to be with a group of like-minded believers. First, to test what you are experiencing to see whether it is from God or not and to judge your assessment. Second, to learn from.