Yasiin Bey, formerly known as Mos Def, will finally be allowed to leave South Africa after he apologized for breaking immigration laws, The Guardian reports.

Bey, who has lived in Cape Town since 2013, was arrested in January after trying to leave South Africa on a world passport, a document the country does not recognize as legal. He will be declared an undesirable person for his actions and will not be granted re-entry to South Africa.

“[He] has unreservedly apologised to the government of South Africa. The department is satisfied with the apology [and] will withdraw the charges against him,” the home affairs department said in a statement.

The world passport is issued by the World Service Authority, a non-profit organization set up in America after the second world war to advocate for world citizenship. The Authority has been issuing the passports since 1954, but many countries do not accept the 30-page document either as a travel document or a formal identity.