After several years, the Prophet and his followers were able to return to Makkah, where they forgave their enemies and established Islam definitively. Before the Prophet died at the age of 63, the greater part of Arabia was Muslim, and within a century of his death Islam had spread to Spain in the West and as far East as China.

The Hui Shen mosque in China was built in the seventeenth century.