Romans 5
6 For when we were still without strength, [d]in due time Christ died for the ungodly. 7 For scarcely for a righteous man will one die; yet perhaps for a good man someone would even dare to die.

6 You see, at just the right time, when we were still powerless, Christ died for the ungodly. 7 Very rarely will anyone die for a righteous person, though for a good person someone might possibly dare to die.

From the bible commentary:
Is there a difference between a righteous man and a good man in Paul’s thinking?
The difference in Romans 5:7 seems to be that the righteous man is only that – righteous in his personal life but perhaps lacking in feeling for others. The good man by contrast goes beyond the other man by also being kind and benevolent.

Romans 5
8 But God demonstrates his own love for us in this: While we were still sinners, Christ died for us.

Christ died for the person who cut you off in traffic. Christ died for the murderer and thief. Christ died for the coworker that you can’t stand. That is next level stuff. That is leaps beyond the person who would sacrifice for a good person, or maybe even a “righteous person.”