The present pattern of the Hajj was established by Islamic prophet Muhammad who made reforms to the pre-Islamic pilgrimage of the pagan Arabs.[7] Mecca was conquered by the Muslims in 630 CE. Muhammad then cleansed the Kaaba by destroying all the pagan idols, and re-consecrated the building to Allah.[6] Next year, at the direction of Muhammad, Abu Bakr led 300 Muslims to the pilgrimage in Mecca where Ali delivered a sermon stipulating the new rites of Hajj and abrogating the pagan rites. He especially declared that no unbeliever, pagan, and naked man would be allowed to circumambulate the Kaaba from the next year.[8] In 632 CE, shortly before his death, Muhammad performed his only and last pilgrimage with a large number of followers, and taught them the rites of the Hajj and the manners of performing them.[9] In the plain of Arafat, he delivered a famous speech – known as The Farewell Sermon – to those who were present there.[10] From then, Hajj became one of the Five Pillars of Islam.