*Fresh from separate legal troubles, Justin Bieber and Chris Brown got back to their day jobs over the weekend – recording music.

Bieber, 20, shared two photos of the reunion, captioning the one above, “Studio, me and CB did 1 for the fans.”

Brown, 25, and Biebs previously collaborated on the track “Next To You” on Breezy’s 2011 album “F.A.M.E.”

The pair had lots to celebrate besides new music. Bieber, coming off of an N-word scandal, just reached a plea deal in his DUI case in Miami, and Brown was recently release from jail.

Brown hinted as soon as he returned home that he was itching to get back to the music for his fans via Twitter.

“Humbled and Blessed…To the greatest fans in the world…This was always about you!” he wrote with a photo of him performing.

As for Bieber, he appears to want to put his image and run-ins with the law far behind him.

“New beginnings,” Bieber wrote to his more than 52 million fans last week.