The R& B singer posted a picture on Instagram of him wearing standard orange prison overalls in court along with a lengthy message about his past life, reported E! Online.
"I've been through a lot in my life. Made a lot of mistakes along the way. But through it all I've always been true to myself and through God I've been able to take care of my family!
"I should regret some things but I think the lessons learnt will shape me into a real man. I'm grateful and appreciative! Thank you for life!" he wrote.
The 25-year-old rapper was then sentenced to 365 days after admitting violating his probation by getting into a fight in Washington DC last year, but the judge gave him credit for the 234 days he has already spent in rehab and jail. He was released on June 2 midnight.
The judge ordered him to attend therapy sessions twice a week and undergo random drug testing three times a week.