Mahatma Gandhi said this quote

Infinite striving to be the best is man's duty it is its own reward. Everything else is in God's hands.