After a month behind bars in Sweden,A$AP Rockyhas been freed from detention while awaiting a verdict in the assault case against him. The ruling is expected to be announced Aug. 14, a Swedish court said Friday.

On the final day of his high-profile trial, the 30-year-old rapper — whopleaded not guilty— appeared in court to hear testimony from witnesses, including his bodyguard, before closing arguments were held. Upon the announcement that Rocky would be released pending the judge’s ruling later this month, the courtroom erupted and the rapper’s mother shouted, “There is a God,”USA Todayreports.

A$AP Rockyreturned to Instagramshortly after the decision was announced, posting a photo of himself captioned, “Thank you from the bottom of my heart to all of my fans, friends and anyone across the globe who supported me during these last few weeks. I can’t begin to describe how grateful I am for all of you. This has been a very difficult and humbling experience. I want to thank the court for allowing me, Bladi and Thoto to return to our family and friends. Thanks again for all of the love and support.”

Two other members of Rocky’s entourage, Bladimir Corniel and David Rispers — who also pleaded not guilty to assault charges — have also been released.

“We had two goals — one goal was that my client was going to be a free man today,” Rocky’s lawyer Slobodan Jovicictold CNN, adding that he was “satisfied.” “Then we are hoping for an acquittal in 14 days, but we have to wait and see.”

The music star, né Rakim Mayers, had been in custody since July 2, after he was arrested in Stockholm following a street altercation involving a 19-year-old man named Mustafa Jafari.

A$AP Rocky leaves court on Friday.Fredrik Persson/EPA-EFE/Shutterstock

ASAP Rocky

Although assault cases causing bodily harm can result in a sentence of up to two years of imprisonment, on Friday, the prosecution called for a much shorter sentence, asking for the court to consider asix-month jail sentence, according toUSA Todayreporter Kim Hjelmgaard.According to the Associated Press, Rocky told the court he thought community service would be appropriate.

Speaking to PEOPLE from his office in Stockholm on July 25, Stockholm public prosecutor Daniel Suneson said, “Assault causing actual bodily harm can give up to two years of imprisonment. In this case, it’s not going to be on that level, however.”

ANNA HARVARD/EPA-EFE/Shutterstock

A$AP Rocky

“Things got a little weird. We thought that the behavior of these guys was strange, it got a bit scary,” he told the court, adding that he suspected at the time that Jafari and his friend were on drugs, the outlet reported.

A$AP Rocky

“At this point we are really scared. I saw my security guard being cut, bleeding. We didn’t know what to expect with these strangers — I’m not from Sweden, so it was really scary,” he said, according to CNN. “I wanted to go straight to the hotel for safety. I didn’t want this to happen.”

While in court, A$AP Rocky stressed that he hopes his name will be cleared of all charges.

“I have spent a month in Sweden. This is my fifth or sixth time here. I have seen the most beautiful architecture. And the not so nice things,” he said, according to Hjelmgaard.

“What I want is justice. I want my name to be cleared. Justice for all of us,” he added.

Rakim Athelaston Mayer ASAP Rocky

During the first day of the trial, Stockholm public prosecutor Daniel Suneson showed the courtroom footage of the incident, which occurred on June 30.

He alleged that the rapper threw Jafari on the ground before he and the two members of his crew beat him while he was down,NBC NewsandCBS Newsreported.

Jafari went on to allege that he was also hit on the back with a bottle; however, the defense said there is no evidence to prove that happened, according to NBC News.

Mike Coppola/Getty

Raf Simons - Front Row - February 2018 - New York Fashion Week Mens'

A$AP Rocky has spent nearly a month in prison since his arrest last month. His case has gained national attention withPresident Donald Trumppreviously announcing his plans to call the prime minister of Sweden to help release him from jail.

Trump has also sent Presidential Hostage Affairs Envoy Robert C. O’Brien to Sweden to attend the rapper’s trial. Upon Rocky’s release Friday,Trump tweeted, “A$AP Rocky released from prison and on his way home to the United States from Sweden. It was a Rocky Week, get home ASAP A$AP!”

source: people.com