​Convicted former state Assembly ​Speaker ​Sheldon Silver is begging a federal judge for “mercy” — saying he hopes he doesn’t die in prison when he is sentenced ​later ​this week.

“I worry that my wife will be destitute. I worry about her trying to visit me while continuing to be a full-time helper for her 93-year-old mother. I worry about my own age and health. I pray I will not die in prison,” Silver, 74, wrote in a letter to Manhattan federal Judge Valerie Caproni ahead of his July 27th sentencing.

“I beg for your mercy so that I can somehow go out into the world again to atone to everyone ​​I have hurt,” he told the judge, referring to a request by his lawyer to sentence Silver to a term of public service.

Silver was once one of the most powerful men in NY — along with disgraced Senate leader Dean Skelos and Gov. Cuomo — before he was convicted of pocketing more than $4 million in kickbacks, plus $1 million in illicit profits, through two schemes, including one that directed $500,000 in state grants to a cancer doctor who was sending him lucrative patient referrals.

His first conviction, in 2015, was overturned on appeal amid questions about the validity of the jury instructions.

He has served no prison time as a result.

Despite the request for leniency, Silver continues to assert that what he did was not a crime as he appeals the verdict, according to his lawyer, Michael Feldberg.

“Mr. Silver maintains that his conduct, while far from exemplary, did not cross the line of criminality,” Feldberg wrote to the judge. “And he has a constitutional right to seek to vindicate that view on appeal.”

In a sentencing memo filed Friday, prosecutors didn’t specify how much time the Lower East Side Democrat should serve except to say that it should be longer than any NY legislator ever convicted of corruption.

The current record-holder is ex-Assemblyman William Boyland Jr., who was sentenced to 14 years in 2015.

“The evidence at trial revealed, once again, that Silver repeatedly corrupted the great power of his office for personal profit and caused incalculable damage to the public trust,” the feds said.

Judge Caproni previously sentenced Silver to 12 years in prison after his lawyers argued prison would be a death sentence for the septuagenarian, who was fighting prostate cancer at the time.