American rapper A$AP Rocky has been released from custody in Sweden, pending the verdict in the assault case faced by the star and two of his entourage.

On Friday, the district court in the Swedish capital Stockholm ordered that A$AP Rocky - real name Rakim Mayers - and his associates should be released from custody until the verdict is delivered on August 14. The trio pleaded not guilty earlier this week.

Reacting to the news of the 30-year-old's release, US President Donald 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 ASAPA$AP!"

A$AP Rocky had been in custody in Sweden since July 3. He was arrested after an alleged street fight in Stockholm on June 30. His legal team argued the rapper was acting in self-defence, but prosecutors said the case involved too much violence to support that claim. 

Following his release, A$AP Rocky thanked fans on social media for their support, and also expressed his gratitude to Swedish authorities for allowing him to travel.

Click here for more music news.