Lev Shestov said this quote

Suffering buys something, and this something possesses a certain value for all of us, for common consciousness; by suffering we buy the right to judge.