1 Cor 12:1-13
Now about spiritual gifts, brothers, I do not want you to be ignorant. You know that when you were pagans, somehow or other you were influenced and led astray to mute idols. Therefore I tell you that no one who is speaking by the Spirit of God says, "Jesus be cursed," and no one can say, "Jesus is Lord," except by the Holy Spirit. There are different kinds of gifts, but the same Spirit. There are different kinds of service, but the same Lord. There are different kinds of working, but the same God works all of them in all men.
Now to each one the manifestation of the Spirit is given for the common good. To one there is given through the Spirit the message of wisdom, to another the message of knowledge by means of the same Spirit, to another faith by the same Spirit, to another gifts of healing by that one Spirit, to another miraculous powers, to another prophecy, to another distinguishing between spirits, to another speaking in different kinds of tongues, and to still another the interpretation of tongues. All these are the work of one and the same Spirit, and he gives them to each one, just as he determines.
The body is a unit, though it is made up of many parts; and though all its parts are many, they form one body. So it is with Christ. For we were all baptized by one Spirit into one body—whether Jews or Greeks, slave or free—and we were all given the one Spirit to drink.
Do you see how good works, (healing, prophecy etc) are also a gifts of righteousness? And so is the putting down of the flesh with all its sinful desires. That is a gift.
As I told someone in another thread, it isn't that we work to receive salvation through the law, but that the salvation through the Spirit, and that by faith of Christ within, CHANGES our works from evil to good.