Grammy-winning R&B singer Usher has been awarded custody of his two sons, ending a long legal fight with his ex-wife.

A person with knowledge of the decision said a judge ruled Friday that the 33-year-old singer will have primary custody of Usher Raymond V and Naviyd Ely Raymond. The person was not authorized to release the information and spoke on condition of anonymity.

Usher, whose real name is Usher Raymond IV, married Tameka Foster Raymond in 2007. They divorced two years later. Tameka Raymond fought for full custody of their sons while Usher initially asked for more visitation rights.