We are the new creation in Christ Jesus, made for good deeds the Lord has determined for us II
«For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, that no one would boast. For we are his workmanship, created in Christ Jesus for good works, which God prepared before that we would walk in them.»
(Ephesians 2:8-10).
Here we can see that person is not made righteous by his deeds. God never declares somebody righteous by his many good works. Vice verse, God makes righteous those who accept His gift by faith, namely Christ Jesus. A person becomes good in God´s eyes by faith when he believes in good works God has done in Christ.