Ecclesiastes 7:20 There is not a righteous man on earth who does what is right and never sins.
To consider man perfect is man’s folly. To accept man’s imperfection is God’s grace. Righteous is defined as one who fears God and even righteous men sin. The difference is righteous men repent of sin.