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 TrumpTrump calls for Republicans to be 'united' on abortion Tlaib calls on Amash to join impeachment resolution Facebook temporarily suspended conservative commentator Candace Owens MORE's former lawyer Michael Cohen in which he told Democratic presidential nominee Hillary ClintonHillary Diane Rodham ClintonWarren policy ideas show signs of paying off Biden at campaign kickoff event: I don't have to be 'angry' to win Top Dem: Trump helps GOP erase enthusiasm gap; Ohio a big problem 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 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.