Miami, FL – Kodak Black was reportedly sentenced to three years and eight months in federal prison on Wednesday (November 13), far less than the 10-year maximum he was facing.

According to the Miami Herald, U.S. District Court Judge Federico Moreno sentenced the Pompano Beach native for lying about his criminal record while purchasing or attempting to purchase six pistols on two different occasions at Lou’s Police and Security Equipment in Hialeah.

“Young people do stupid things,” Moreno told Kodak. “But the problem is that you’ve been doing stupid things since you were 15.”

While speaking to Moreno before he handed down the sentence, Kodak apologized, “I’m sorry for the actions that led me for where I’m standing. I do take full responsibility for my mishap.”

During the hearing, prosecutors confirmed Kodak was involved in a violent prison fight, although it wasn’t a factor in the judge’s sentencing.

“Kapri displayed disruptive behavior,” Assistant U.S. Attorney Bill Brown said. “He was involved in a fight on October 29 with another inmate.” As a result, a corrections officer had to spray mace on both inmates involved in the altercation.

Prosecutors said Kodak was “visibly under the influence of an unknown substance” when he attacked the officer. The beating was reportedly so severe, the guard ended up in the hospital with a hernia.

Kodak’s lawyers, however, insisted he was drugged and instigated into the altercation by a gang member.

The 22-year-old rapper still has other pending criminal cases, including the alleged sexual assault of a high school female from Florence, South Carolina.

“This is going to be the longest sentence that he’s going to get in his career, hopefully his life,” Kodak’s defense attorney Brad Cohen said.

In the meantime, prosecutors plan to bring the prison fight to a grand jury.

Kodak was arrested on May 11, shortly before went he took the Rolling Loud Miami music festival stage. The Grammy-nominated artist released his latest project, Dying To Live, last December, which debuted at No. 1 on the Billboard 200 and marked his first chart-topping album.