After having consolidated the power of Islam in Arabia, the Prophet set out to perform Hajjatul wada‘, his Farewell Pilgrimage. It was the last year of his life. He left Madinah for Makkah accompanied by Madinan Muslims. When the news spread that the Prophet was going to perform the pilgrimage, various tribes living in Arabia began pouring into Makkah.
Therefore when the Prophet of Islam performed his first as well as his last pilgrimage, he was joined by nearly 125,000 Muslims. During this pilgrimage the revelations about the rules of the hajj were given to him. These are followed by all Muslims to this day.
When the Prophet arrived at Mount Arafat, he imparted some teachings to the people present on that occasion. These are preserved in the form of the “Final Sermon.”
During the Sermon of Arafat the last passage of the Quran was revealed:
“Today I have completed your religion for you, and completed My blessings upon you. I have chosen for you Islam as your religion.” (Al Ma’idah, 5:3)
This proved to be his last visit, that is why it came to be called the “Farewell Pilgrimage”. Only three months after his return to Madinah, the Prophet Muhammad ﷺ fell ill and, with the consent of all of his wives, stayed in the house of Aishah. He had fever and headache. He remained ill for about two weeks and breathed his last on 12 Rabiul Awwal, 632 A.D. He continued leading prayers till he became too weak to go to the mosque. But before his death, he said his last prayer in the Prophet’s Mosque and made Abu Bakr, his closest companion, the Imam of this prayer.
The Prophet died in the room attached to the Prophet’s Mosque. He was buried in the same place. Later when Abu Bakr and Umar died, they were also buried to the right and left side of the Prophet.