Sin focuses on failure, separation and eventually death. Righteousness focuses on overcoming, victory, relationship and life eternal.
We have to remember that Righteousness is not gain through an act of human endeavor, but of Divine Sacrifice.
With every temptation, God makes a way of escape, He does NOT cause you to live righteously in that He overrides your free will.
To say that God causes an action is false.
God didn't cause the children of Israel to be delivered from Egypt, He provided the way of escape. They had the ability to take it or stay, or even change their mind and go back.
There is no place in scripture that tells us to know or retain the knowledge of sin, but there are plenty that stress the knowledge of God.
2 Peter 1:2 Grace and peace be multiplied to you in the knowledge of God and of Jesus our Lord, 3 as His divine power has given to us all things that pertain to life and godliness, through the knowledge of Him who called us by glory and virtue, 4 by which have been given to us exceedingly great and precious promises, that through these you may be partakers of the divine nature, having escaped the corruption that is in the world through lust. 5 But also for this very reason, giving all diligence, add to your faith virtue, to virtue knowledge, 6 to knowledge self-control, to self-control perseverance, to perseverance godliness, 7 to godliness brotherly kindness, and to brotherly kindness love. 8 For if these things are yours and abound, you will be neither barren nor unfruitful in the knowledge of our Lord Jesus Christ.
Focusing on your sin makes you unfruitful in the knowledge of our Lord Jesus Christ. It is of no use to the believer. It doesn't produce righteousness, remembrance of sin produces guilt, nothing more.