Was Islam spread by the sword?
No.
For example:
Spread of
Islam in Somalia:
[10]
Nearly all people in Somalia are Sunni Muslims. For more than 1400 years, Islam made a great part of Somali society.[1]Practicing Islam reinforces distinctions that further set Somalis apart from their immediate neighbors, many of whom are either Christians or adherents of indigenous faiths. The early Muslims sought refuge from persecution in cities on the northern Somali coast.
History
Sunni-Sufi orders and Islamic scholars [5]
Wadaddo help avert misfortune by making protective amulets and charms that transmit some of their baraka to others, or by adding the Qur'an's baraka to the amulet through a written passage. The baraka of a saint may be obtained in the form of an object that has touched or been placed near his tomb.
Although wadaddo may use their power to curse as a sanction, misfortune generally is not attributed to curses or witchcraft. Somalis have accepted the orthodox Muslim view that a man's conduct will be judged in an afterlife. However, a person who commits an antisocial act, such as patricide, is thought possessed of supernatural evil powers.
Like other Muslims, Somalis believe in jinn. Certain kinds of illness, including tuberculosis and pneumonia, or symptoms such as sneezing, coughing, vomiting, and loss of consciousness, are believed by some Somalis to result from spirit possession, namely, the Ifrit of the spirit world. The condition is treated by a shaykh, who reads portions of the Qur'an over the patient repeatedly.
Yibir clan members are popularly held to be descendants of Jewish Hebrew forbears. The etymology of the word "Yibir" is also believed by some to have come from the word for "Hebrew".[21] However, spokespersons for the Yibir have generally not tried to make their presence known to Jewish/Israeli authorities. Despite their putative Jewish origins, the overwhelming majority of the Yibir, like the Somali population in general, adhere to Islam and know practically nothing of Judaism.[22][23]
Islamism[edit]
Following the outbreak of the civil war in the early 1990s, Islamism appeared to be largely confined to the radical Al-Itihaad al-Islamiya group. In 1992, Colonel Abdullahi Yusuf Ahmed marshalled forces to successfully expel an Islamist extremist group linked to the outfit, which had laid siege to Bosaso, a prominent port city and the commercial capital of the northeastern part of the country.[24]
Islam in Somalia - Wikipedia, the free encyclopedia
I don't see any sword in spread of Islam in Somalia.
Regards