Chris Brown, Justin Bieber
Justin Bieber posted this snap after a studio session with the recently-released Chris Brown.Instagram

Just days after his release from prison, Chris Brown is already making sweet music.

The embattled singer has teamed up with teen pop sensation Justin Bieber for another musical collaboration.

Sharing a black-and-white snap of the duo during their recent studio session, Bieber wrote: "Studio. Me and CB did 1 for the fans."

This is not the first time the pair has worked together.

Back in 2012, Brown released the track Next To You, which featured the Baby crooner. The track, a cut from his 2011 album F.A.M.E, peaked at number 14 in the US singles chart.

Their latest trip to the studio follows Brown's 108 days behind bars, part of a 131-day sentenace for probation violation. He was originally sentenced to a year in prison in March 2014 after a judge decided to punish him for his "inability to stay out of trouble".

Shortly after returning home, Rihanna's ex-boyfriend tweeted: "Humbled and Blessed...Back to the Music and the Fans...Thank you GOD."

Although no further details have surfaced about Brown and Bieber's new material, the project will be a welcome distraction for Biebs, whose legal woes have gotten worse since his February arrest for DUI in Miami.

Earlier this month he issued two grovelling apologies after footage emerged of him using the N-Word.