Napoleon Hill said this quote

Adversity relieves people of vanity and egotism. It discourages selfishness by proving that no one can succeed without the cooperation of others.