Galatians 5:22–23 is one of the most popular passages in the Bible. It lists the "fruit of the Spirit." The Greek word for goodness, agathosune, doesn't just refer to an attitude or a motivation, but a lifestyle characterized by virtue and helpfulness. The "fruit of the Spirit" describes characteristics we could never have without the work of the Holy Spirit in our hearts. Each piece of spiritual fruit works in concurrence with the others. Goodness is certainly one of them. Our good works were ordained by God. The natural extension of faith in Christ is good works in Christ's name. God created us, equips us, and completes the good works in us through His Spirit.
"Good," agathosune, here has the taste of righteousness in it. To do a good deed is to treat others justly and to also endorse virtue. It is righteous and beneficial to spend time with Jesus and to learn from Him. When wronged, we are still to do good to those who wrong us; we are not to seek revenge or return in kind. Just as a cup of water will spill water when bumped, a believer who is filled with the Spirit will spill goodness when jostled.
God grows goodness in us, and He will not stop until we are good through and through. When we see Jesus, we will be "like Him," fully characterized by goodness (1 John 3:2). Studying Scripture promotes goodness within us. God inspired the Scriptures in part so that we can be completely equipped "for every good work" (2 Timothy 3:16–17). God’s goodness empowers us to live lives characterized by the desire to act righteously and for the good of others. As others see the work of God in us, Jesus said, they will "give glory to your Father who is in heaven" (Matthew 5:16).