From the following scripture we are taught that through the gospel we are instructed in righteousness, so how do we practice righteousness?
1 Jn 2:28 And now, little children, abide in him; that, when he shall appear, we may have confidence, and not be ashamed before him at his coming.
1 Jn 2:29 If ye know that he is righteous, ye know that every one that doeth righteousness is born of him.
1 Pet 2:24 Who his own self bare our sins in his own body on the tree, that we, being dead to sins, should live unto righteousness: by whose stripes ye were healed.
13 Who is a wise man and endued with knowledge among you? let him shew out of a good conversation his works with meekness of wisdom.
14 But if ye have bitter envying and strife in your hearts, glory not, and lie not against the truth.
15 This wisdom descendeth not from above, but is earthly, sensual, devilish.
16 For where envying and strife is, there is confusion and every evil work.
17 But the wisdom that is from above is first pure, then peaceable, gentle, and easy to be intreated, full of mercy and good fruits, without partiality, and without hypocrisy.
18 And the fruit of righteousness is sown in peace of them that make peace.
Phil 1:10 That ye may approve things that are excellent; that ye may be sincere and without offence till the day of Christ.
Phil 1:11 Being filled with the fruits of righteousness, which are by Jesus Christ, unto the glory and praise of God.
2 Timothy 3:14-17
14 But continue thou in the things which thou hast learned and hast been assured of, knowing of whom thou hast learned them;
15 And that from a child thou hast known the holy scriptures, which are able to make thee wise unto salvation through faith which is in Christ Jesus.
16 All scripture is given by inspiration of God, and is profitable for doctrine, for reproof, for correction, for instruction in righteousness:
17 That the man of God may be perfect, throughly furnished unto all good works.