The outgoing commander-in-chief, who is set to leave office Monday as his four-year term expires, said he’s put everything he has into more than five decades of public service.