WireImage 1 / 8

Friday the 13th is turning out to be pretty lucky for Justin Bieber. The "Heartbreaker" singer, 20, has worked out a plea deal for the DUI charges against him in connection with his Miami Beach arrest in January.

PHOTOS: Bieber's biggest scandals

A source confirms to Us Weekly that the charges will be dropped in exchange for the Canadian superstar attending anger management courses. (In addition to driving under the influence, Bieber was charged with resisting arrest; police claimed in their report that he cursed at them and ignored their instructions.)

PHOTOS: Celebrity mugshots

"It's a really good deal and he's happy with it," the insider tells Us of the crooner, noting that he won't even be put on probation. "He thinks it's fair. He just wants to put the whole bad episode behind him and move on."

That'll be much easier now that an agreement has been worked out for his punishment. In other good news, Bieber also learned this week that he won't face a felony charge for the cellphone-snatching incident he got into in May.

PHOTOS: Stars in court

CNN reported Friday, June 13, that the L.A. County district attorney decided not to pursue "felony prosecution." The robbery complaint -- from a woman at Sherman Oaks Castle Park -- will instead to go the city attorney, who will determine whether to file a misdemeanor charge against the star.