This too is for the reason just given [Sections 21, 24, 25], that our wisdom comes from ourselves and not from the Lord. For example, if we know the theology of our church right down to the last detail and know how to support it on the basis of the Word and of reason; if we know the theologies of all the churches through the ages, along with the edicts of all the councils; in fact, if we know truths and see and understand them as well—if, for example, we know what faith is, what caring is, what piety is, what repentance and the forgiveness of sins are, what regeneration is, what baptism and the Holy Supper are, what the Lord is and what redemption and salvation are—we still are not wise unless we turn our backs on evils because they are sins. These are lifeless pieces of information, because they involve only our power of understanding and not at the same time our power of willing. Things like this perish in the course of time for the reasons given in Section 15 above. After death we ourselves actually discard them because they do not agree with the love that belongs to our will.
All the same, these pieces of information are absolutely necessary because they tell us how we are to behave; and when we do them they come to life for us, but not before.
from Life/Faith, Section 27
This makes it very clear that to the extent that we turn our backs on evil deeds we are with the Lord and in the Lord; and to the extent that we are in the Lord the good deeds we do come not from ourselves but from the Lord. This yields the following general law: To the extent that we turn our backs on evil deeds, we do good deeds.
Section 24: Published 3/31/2019
Section 25: Published 4/1/2019
Section 19: Published 3/30/2019