The Bible verse you are referring to is from a letter that the apostle Paul wrote to fellow Christians in the city of Galatia, in what is now central Turkey.
… the fruit of the Spirit is love, joy, peace, forbearance, kindness, goodness, faithfulness, gentleness and self-control.
Paul explains that when you ask God’s Spirit to guide your life, you will become more loving of others and know an overarching joy and peace in all circumstances. You will also become more tolerant of those who offend you, and be more willing to show kindness to those who are not kind to you—something that is usually very difficult without the Spirit guiding your thoughts and actions.
Likewise, you will find that doing good and being faithful in your relationships and your work will come more naturally. You will be gentle in your speech and actions, and in all ways you will find yourself better able to control your destructive behaviors.
A tree bears fruit based on its DNA plus water and nutrients it absorbs through its roots. Good genetics, the right amount of water and the correct balance of nutrients will yield good fruit. In the same way, when you allow God’s spirit to infill you, your life will yield wonderful fruit.