Paul prays that they will be filled with the knowledge of God's will in all spiritual wisdom and understanding. And he adds to this request the reason for it--so that they may lead lives worthy of the Lord, so that they may bear fruit in every good work.
But, he explicitly includes the recognition that wisdom and work will not preclude pain. Not preclude but means to overcome.
God has rescued us from the power of darkness and transferred us into the kingdom of Christ in whom we have redemption, the forgiveness of sins.