YHWH saw & loved all that you are .. your very best & your very worst self...even before you were born. Self righteousness as behavior modification to try to earn his love and approval can be from a root of mistrust. He loves you as you are.
True repentance is enabled by trust in his true nature. Sin is enabled by a root of fear and mistrust.
What a blessed standing we have with our God & father who sees us as clean and pure without fault or defect in our messiah Yeshua!!!