WireImage 1 / 2

Troubled rapper Chief Keef is heading back behind bars for a probation violation, just 13 days after he was released.

RELATED: BING: Rocker arrests

The 18-year-old, whose real name is Keith Cozart, is heading to a rehabilitation facility associated with the Cook County Department of Corrections, after a Chicago judge sentenced him to 90 days for failing a random drug test.

Keef took to Twitter on Wednesday to tell his followers he was returning to jail and wrote, "Judge Putting me Back in jail See y'all later.

Keef's random drug tests stem from a May arrest for speeding, for which he pleaded guilty and was ordered to undergo regular testing as part of his sentence.

In September, he failed by testing positive for marijuana, and began a 20-day sentence in jail on Oct. 15.

RELATED: BING: Craziest celeb arrests

However, he was released 11 days early on Oct. 23 after receiving credit for good behavior.

It was his latest run-in with the law: He already has a 2011 firearms conviction on his record, and he is currently facing two claims for child support from two different women.