We can never earn righteousness, it is a gift of God, freely given to those who believe. This is part of the identity we have in Christ. There is no need to beg God for his goodness when you are seated with Jesus at the right hand of God.