President Trump Donald John TrumpBiden on Trump's refusal to commit to peaceful transfer of power: 'What country are we in?' Romney: 'Unthinkable and unacceptable' to not commit to peaceful transition of power Two Louisville police officers shot amid Breonna Taylor grand jury protests MORE's former lawyer Michael Cohen at his sentencing in federal court on Wednesday said the president was right to call him weak because it was his "duty" to cover up Trump's "dirty deeds."

"Recently the president tweeted a statement calling me weak, and it was correct but for a much different reason than he was implying," Cohen said, according to multiple reports. "It was because time and time again I felt it was my duty to cover up his dirty deeds."

ADVERTISEMENT

Trump last month blasted Cohen as a "weak person" for pleading guilty to lying to Congress in special counsel Robert Mueller’s Russia probe.

Cohen was sentenced Wednesday to three years in federal prison for a series of crimes he committed while working for Trump, including campaign finance violations stemming from payments to two women alleging to have had affairs with Trump.

Trump's former longtime lawyer and "fixer" on Wednesday said he has been "leading a personal and mental incarceration" ever since he began working for Trump in the early 2000s.

"This may seem hard to believe but today is one of the most meaningful days of my life," Cohen said, Bloomberg reported. "The irony is today is the day I get my freedom back. I have been leading a personal and mental incarceration ever since the fateful day that I accepted the offer to work for a famous real estate mogul whose business acumen I greatly admired."

Cohen also lamented the impact his legal woes have had on his family.