They did, however, in the US they weren’t allowed to.
Islam got to west Africa in around the 8th century with the Wolof/Mande/Fulani. Then Hausas & Kanuri around the 13th century. And Mande traders brought it to the Yorubas around the 16th century. But it was the Sufi version which allowed the fusion of traditional beliefs. However, Sunni Islam started spreading around the 18th century tho.
There was a Muslim slave revolt in Brazil led by Yoruba/Hausa Muslims.
Read this:
Malê Uprising, The
The Malê Uprising was a slave revolt in Salvador, Bahia, organized by
Muslims—known as Malês—during the last ten days of Ramadan in January of 1835. Captured rebels wore Muslim dress, including head coverings and long white tunics, and carried prayer beans as well as Qur’anic amulets on their bodies for protection. The revolt was organized primarily by
Hausa and Nagô(
Yoruba) Muslims, but non-Muslim Africans from various backgrounds also participated, numbering roughly 600. The uprising targeted whites, but also mulattos and native-born black Brazilians—namely, those who did not belong to the African-born slave and free population and who were seen as part of slaveholding society.
Having come from African slave-holding societies, Malês expressed a desire to upend the Brazilian status quo and enslave mulattos, though their ultimate goals against the well-armed Brazilian security forces were unclear.
The 1835 uprising took place during a chaotic period of frequent revolt (including slave revolt), economic downturn, rising poverty, military and federalist rebellion, and strong anti-colonial sentiment. It was also a time when the population of Bahia was mostly of African origin, whether free or enslaved, which made up the lowest rung of society. Numerous other uprisings had taken place over the prior three decades but the 1835 event was by far the largest and most significant. It was also a period of Islamic conversion among the enslaved and free Africans of Bahia, who were receptive to Qur’anic messages that sympathized with marginalized peoples and who largely respected and admired the Malês. As a result of the 1835 revolt, security forces in Bahia and elsewhere seized any items associated with Islam, including all documents written in Arabic.
rpl.hds.harvard.edu