Righteousness is not earned but imparted or given to us by God when we believe on and received Jesus as Lord and Savior. This Righteousness comes from God and it is His righteousness. He placed our sins on Jesus and gave us His righteousness. He made and declared us righteous because of what Jesus accomplished for us at the cross. This is the truth of the bible but who are you declaring yourself to be? Right believing leads to right living.