Immanuel Kant said this quote

A good will is good not because of what it performs or effects, not by its aptness for the attainment of some proposed end, but simply by virtue of the volition - that is, it is good in itself, and considered by itself is to be esteemed much higher than all that can be brought about by it in favor of any inclination, nay, even of the sum-total of all inclinations... like a jewel, it would still shine by its own light, as a thing which has its whole value in itself.