Brooklyn rapper Bobby Shmurda, legal name Ackquille Pollard, was sentenced to seven years in prison on Wednesday, Oct. 19, for conspiracy and criminal possession of a weapon.

Although Shmurda accepted a guilty plea for fourth degree conspiracy and second degree criminal weapons charges last month, he reportedly tried to withdraw it during trial.

“I was forced to take this sentence. I don't want to take this sentence,” Shmurda said in court transcripts. “I want to drop my plea.”

However, the judge denied his request and sentenced him to seven years with credit for time served.

Shmurda has served two years thus far for charges filed after a June 3, 2014 raid caught him with a firearm he claimed was a prop for a music video.

Alex Spiro, Shmurda’s lawyer, released a statement on FADER following the sentencing:

“His sentence of 7 years, with credit for 2 years already served and good time credit will hopefully permit him to be home in approximately 3 1⁄2 years and resume his remarkable career. This plea also covers a separate Bronx Indictment.”

Shmurda initially accepted the global plea deal on Sept. 9, just before jury selection was set to begin for his trial, that required he accept all charges in one deal. The deal reduced his maximum sentence to seven years from fifteen, with five years of probation.