Cohen once teased Hillary Clinton about going to prison. Now he's been sentenced to 36 months

Social media users are resurfacing an old tweet from President TrumpDonald John TrumpPentagon update to missile defense doctrine will explore space-base technologies, lasers to counter threats Giuliani: 'I never said there was no collusion' between the Trump campaign and Russia Former congressmen, RNC members appointed to Trump administration roles MORE's former lawyer Michael Cohen in which he told Democratic presidential nominee Hillary ClintonHillary Diane Rodham ClintonTexas man indicted over allegations he created fraudulent campaign PACs FISA shocker: DOJ official warned Steele dossier was connected to Clinton, might be biased Pompeo’s Cairo speech more ‘back to the future’ than break with past MORE that she will "go to prison."

"@HillaryClinton when you go to prison for defrauding America and perjury, your room and board will be free!" Cohen wrote in the now-deleted tweet, posted in December 2015.

Cohen posted the message 36 months ago, the same amount of time he was sentenced to on Wednesday. 

Cohen was sentenced 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. 

"36 months @MichaelCohen212," comedian and Trump critic Kathy Griffin tweeted with an image of the old anti-Clinton tweet. "36 months."  

Celebrity lawyer Michael Avenatti, who represents adult film star and director Stormy Daniels in her case against Trump and Cohen, also posted a screenshot Wednesday of Cohen's anti-Clinton tweet alongside Cohen's quote from a Vanity Fair article in which the attorney said he planned to "take an extended vacation" on Daniels's dime.

Daniels's real name is Stephanie Clifford.

Trump during his presidential campaign often framed Clinton as a "criminal," and crowds at his rallies frequently chanted "lock her up!" Trump has continued to accuse Clinton of nefarious political activity as special counsel Robert MuellerRobert Swan MuellerSasse: US should applaud choice of Mueller to lead Russia probe MORE investigates the ties between his campaign and Russia.

Cohen on Wednesday said he has been experiencing "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." 

Federal prosecutors in New York last week recommended Cohen serve “substantial” prison time, despite his ongoing cooperation in the Mueller probe and other law enforcement investigations.

The prosecutors also said Cohen committed the campaign finance violations at the direction of "Individual-1," who is widely believed to be Trump.

-Updated 2:41 p.m.