It was announced Tuesday that rapper Meek Mill would be released from prison, after having been sentenced late last year to serve two to four years for probation violations, stemming from a decade-old case.

Philadelphia 76ers co-owner and close friend of Mill's, Michael Rubin, was the first to announce the news on Instagram. Mill's lawyer later confirmed the news.

"@meekmill is FREE!!! Just left visiting Meek with @kevinhart4real and I'm on the way back to pick him up as we speak!" Rubin wrote Tuesday afternoon.

Just hours after his release, the rapper, who hails from Philadelphia, was photographed at the 76ers home game against the Miami Heat.

The 30-year-old rapper had been serving time for violating probation, which notables like Kevin Hart and Jay-Z have spoken out against, calling the ruling to jail Mill unjust and part of a larger racial issue. According to The Associated Press, Mill had been on probation for nearly a decade in a drug and gun case that occurred when he was 19.

Mill's lawyer Joe Tacopina also confirmed the release to ABC News in a statement that read, "We are thrilled that the Pennsylvania Supreme Court has directed Judge [Genece] Brinkley to immediately issue an order releasing Meek on bail. As we have said all along, Meek was unjustly convicted and should not have spent a single day in jail."

Tacopina continued, "Meek is excited to be reunited with his family, and we, along with Meek, intend to continue to shine the light on a justice system in need of reform to prevent any other citizen from being put through what Meek has endured.”

Mill himself also posted to various social media accounts, clearly excited about the prospects of coming home and thanking those who had helped the rapper obtain his release.

"I'd like to thank God, my family, my friends, my attorneys, my team at Roc Nation including Jay Z ... my good friend Michael Rubin, my fans, the Pennsylvania Supreme Court and all my public advocates for their love, support and encouragement during this difficult time," he wrote. "While the past five months have been a nightmare, the prayers, visits, calls, letter and rallies have helped me stay positive. To the Philadelphia District Attorney's office, I'm grateful for your commitment to justice -- not only for my case, but for others that have been wrongfully jailed due to police misconduct."

"Although I'm blessed to have the resources to fight this unjust situation, I understand that many people of color across the country don't have that luxury and I plan to use my platform to shine a light on those issues," Mill concluded. "In the meantime, I plan to work closely with my legal team to overturn this unwarranted conviction and look forward to reuniting with my family and resuming my music career."

After the ruling to jail Mill his past November, hundreds of protesters gathered outside Philadelphia's Criminal Justice Center to call for Mill's prison sentence on probation violations to be overturned.

Rapper Rick Ross and Philadelphia 76ers legend Julius Erving spoke at the event. Jay-Z also penned an opinion piece for the New York Times, titled "The Criminal Justice System Stalks Black People Like Meek Mill."