Kaaba was considered a holy site by the local Arabs. Muhammad took part in the reconstruction of the Kaaba after its structure was damaged due to floods around 600 CE. Ibn Ishaq's Sirat Rasūl Allāh, one of the biographies of Muhammad (as reconstructed and translated by Guillaume), describes Muhammad settling a quarrel between the Meccan clans as to which clan should set the Black Stone in its place. According to Ishaq's biography, Muhammad's solution was to have all the clan elders raise the cornerstone on a cloak, after which Muhammad set the stone into its final place with his own hands. Ibn Ishaq says that the timber for the reconstruction of the Kaaba came from a Greek ship that had been wrecked on the Red Sea coast at Shu'aybah and that the work was undertaken by a Coptic carpenter called Baqum. Muhammad's Isra' is said to have taken him from the Kaaba to the Masjid al-Aqsa and heavenwards from there. Muslims initially considered Jerusalem as their qibla, or prayer direction, and faced toward it while offering prayers; however, pilgrimage to the Kaaba was considered a religious duty though its rites were not yet finalized. During the first half of Muhammad's time as a prophet while he was at Mecca, he and his followers were severely persecuted which eventually led to their migration to Medina in 622 CE. In 624 CE, Muslims believe the direction of the qibla was changed from the Masjid al-Aqsa to the Masjid al-Haram in Mecca, with the revelation of Surah 2, verse 144. In 628 CE, Muhammad led a group of Muslims towards Mecca with the intention of performing the Umrah, but was prevented from doing so by the Quraysh. He secured a peace treaty with them, the Treaty of Hudaybiyyah, which allowed the Muslims to freely perform pilgrimage at the Kaaba from the following year. At the culmination of his mission, in 630 CE, after the allies of the Quraysh, the Banu Bakr, violated the Treaty of Hudaybiyyah, Muhammad conquered Mecca. His first action was to remove statues and images from the Kaaba. According to reports collected by Ibn Ishaq and al-Azraqi, Muhammad spared a painting of Mary and Jesus, and a fresco of Ibrahim. Al-Azraqi further conveys how Muhammad, after he entered the Kaaba on the day of the conquest, ordered all the pictures erased except that of Maryam: After the conquest, Muhammad restated