From Galatians 5:23 (re: "self-control" - G1466 - egkrateia ) :
quoting,
"1466 egkráteia (from 1722 /en, "in the sphere of" and 2904 /krátos, "dominion, mastery") – properly, dominion within, i.e. "self-control" – proceeding out from within oneself, but not by oneself.
"For the believer, 1466 /egkráteia ("self-control, Spirit-control") can only be accomplished by the power of the Lord. Accordingly, 1466 /egkráteia ("true mastery from within") is explicitly called a fruit of the Holy Spirit (Gal 5:23)."
end quoting [from Bible Hub].
[bold / underline emphasis mine]
Also, Philippians 1:11 states, "having been filled with the fruit of righteousness which is by means of Jesus Christ, to the glory and praise of God."
And Hebrews 13:20-21 states, "Now may the God of peace, having brought out from the dead the great Shepherd of the sheep, our Lord Jesus, by the blood of the eternal covenant, equip you in everything good, in order to do His will, working [/doing] in us that which is well pleasing before Him, by means of Jesus Christ, to whom be the glory to the ages of the ages. Amen."
See Romans 8:4, "that the righteousness OF the law might be fulfilled IN us [note, not BY us], who walk not after the flesh but after the Spirit."
"If we live by the Spirit, we should also walk by the Spirit." Gal5:25
quoting,
"1466 egkráteia (from 1722 /en, "in the sphere of" and 2904 /krátos, "dominion, mastery") – properly, dominion within, i.e. "self-control" – proceeding out from within oneself, but not by oneself.
"For the believer, 1466 /egkráteia ("self-control, Spirit-control") can only be accomplished by the power of the Lord. Accordingly, 1466 /egkráteia ("true mastery from within") is explicitly called a fruit of the Holy Spirit (Gal 5:23)."
end quoting [from Bible Hub].
[bold / underline emphasis mine]
Also, Philippians 1:11 states, "having been filled with the fruit of righteousness which is by means of Jesus Christ, to the glory and praise of God."
And Hebrews 13:20-21 states, "Now may the God of peace, having brought out from the dead the great Shepherd of the sheep, our Lord Jesus, by the blood of the eternal covenant, equip you in everything good, in order to do His will, working [/doing] in us that which is well pleasing before Him, by means of Jesus Christ, to whom be the glory to the ages of the ages. Amen."
See Romans 8:4, "that the righteousness OF the law might be fulfilled IN us [note, not BY us], who walk not after the flesh but after the Spirit."
"If we live by the Spirit, we should also walk by the Spirit." Gal5:25