Doing right comes from our heart and spirit because we have been born of the Spirit. John 3:1-21 “What you have heard from the beginning is to remain in you. If what you have heard from the beginning remains in you, then you will remain in the Son† and in the Father.† 25 And this is the promise that he himself made to us: eternal life.†” 1 John 3:24-25 ISV
The one who does what is right is righteous, just as he is righteous.“1 See what great love† the Father has given us that we should be called God’s children — and we are! The reason the world does not know us is that it didn’t know him. 2 Dear friends, we are God’s children now, and what we will be has not yet been revealed.† We know that when he appears,† we will be like him† because we will see him as he is.† 3 And everyone who has this hope† in him purifies himself just as he is pure.†
4 Everyone who commits sin practices lawlessness; and sin is lawlessness. 5 You know that he was revealed so that he might take away sins,†† and there is no sin in him.† 6 Everyone who remains in him† does not sin;†† everyone who sins† has not seen him or known him.
7 Children, let no one deceive you. The one who does what is right is righteous, just as he is righteous. 8 The one who commits† sin is of the devil, for the devil has sinned from the beginning. The Son of God† was revealed† for this purpose: to destroy the devil’s works. 9 Everyone who has been born of God† does not sin,† because his seed† remains in him; he is not able to sin,† because he has been born of God. 10 This is how God’s children and the devil’s children become obvious. Whoever does not do what is right is not of God, especially the one who does not love his brother or sister.†” 1 John 31-10 CSB Note: I quoted from the CSB because the † symbol points to cross references
It is according to the new man that we are pure in the sight of God, for the sake of Christ’s righteousness; it is according to our regenerated self that we do not commit sin and keep all our members in subjection unto holiness. But our carnal self, the old Adam, transgresses the will of God in countless instances, thus imposing upon us the duty to wage incessant warfare against it, as St. Paul has so clearly pictured it, Ro 7:14-24. Kretzmann
Instruction in right doing. 16 Every Scripture is inspired by God and is useful for teaching, for convincing, for correction of error, and for instruction in right doing; 17 so that the man of God may himself be complete and may be perfectly equipped for every good work. 2 Timothy 3 WNT
Related post: Be a Doer of the Word