Leo Tolstoy said this quote

Man lives consciously for himself, but serves as an unconscious instrument for the achievement of historical, universally human goals.