Walter Scott said this quote

It is wonderful what strength of purpose and boldness and energy of will are roused by the assurance that we are doing our duty.