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 TrumpPompeo changes staff for Russia meeting after concerns raised about top negotiator's ties: report House unravels with rise of 'Les Enfants Terrible' Ben Carson: Trump is not a racist and his comments were not racist MORE's former lawyer Michael Cohen in which he told Democratic presidential nominee Hillary ClintonHillary Diane Rodham ClintonTrump thanks 'vicious young Socialist Congresswomen' for his poll numbers Will Trump's racist tweets backfire? Democrats fret over Trump cash machine 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 (Bob) Swan MuellerTop Republican considered Mueller subpoena to box in Democrats Kamala Harris says her Justice Dept would have 'no choice' but to prosecute Trump for obstruction Dem committees win new powers to investigate Trump 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.