Muhammad returned to live in Medina. In the next three years, he consolidated most of the Arabian Peninsula under Islam. In March, 632, he returned to Mecca one last time to perform a pilgrimage, and tens of thousands of Muslims joined him.
After the pilgrimage, he returned to Medina. Three months later on June 8, 632 he died there, after a brief illness. He is buried in the mosque in Medina.