The hitmaker was hanging out with pals including Sean Kingston in a recording studio when a masked man attempted to mug a guest outside.

A struggle ensued and before the suspect took off in a car, he shot the unnamed victim in the arm.

By the time police arrived at the scene, Soulja Boy, who was not involved in the fracas, had left.

The victim was hospitalised with non-life threatening injuries, according to TMZ.

Cops are investigating the incident but don't have a suspect yet.