Young Thug is a free man.

The Atlanta rapper has been released from DeKalb County Jail after spending six days in custody for failing a court-mandated drug test in his felony case. According to local news station 11Alive, Superior Court Judge Gregory Adams ruled that Thug can return home as long as he submits to random drug testing at least twice a week, undergoes substance abuse counseling, and checks in with his probation officer.

An apologetic Thug appeared in court on Wednesday (Nov. 14).

“I’m sorry for disobeying the court. I’m sorry for disobeying my PO and being here again,” he told the judge. “I just want to go home with my family and do right.”

Thug was mostly isolated during his time in jail. During the first 48 hours in custody, he refused to eat or drink as a way of punishing himself, according to his lawyer.

Thug, who has six children, says the experience put things in perspective.

“Over the last six days, I understood this is real life,” he said. “I have two sons, ages 10 and 11. I don’t want them to think that going to jail – even if you can get out right away – is cool. I want to grow, and I have grown. I’ve made mistakes and I’ve been penalized for them. I’m sorry, and won’t disobey again.”

In September, Thug was charged with eight felonies stemming from an arrest in 2017. He was pulled over for over-tinted windows and cops discovered marijuana in the vehicle.