Abraham Lincoln actually said...
The commanding generals, who have power to act on proceedings of courts-martial in such cases, are authorized in special cases to restore to duty deserters under sentence, when in their judgment the service will be thereby benefited.
02/26/1864