Fyodor Dostoyevsky said this quote

I am told that the proximity of punishment arouses real repentance in the criminal and sometimes awakens a feeling of genuine remorse in the most hardened heart, I am told this is due to fear.