"... being justified freely by His grace through the redemption that is in Christ Jesus" (Romans 3:24). See also Titus 3:7.
We may be considered to be right by God only because of the grace of
Jesus Christ, which is available to us because Jesus willingly layed
down His life for us - paying the price we deserved for our rebellion
against God. Our justification is not something we receive because of
good works, but
because of the payment Jesus paid for us at the cross
when he suffered and died.