[3] After the death of the Islamic prophet Muhammad in 632, Muslim leadership passed to Caliph Abu Bakr (r. 632–634) following a series of campaigns known as the Ridda Wars.
[5] In May 636, Emperor Heraclius (r. 610–641) launched a major expedition to regain the lost territory, but his army was defeated decisively at the Battle of Yarmouk in August 636.
[6] When the Muslim army reached Jericho, Sophronius collected all the holy relics including the True Cross, and secretly sent them to the coast, to be taken to Constantinople.
Instead of relentless assaults on the city,[a] they decided to press on with the siege until the Byzantines ran short of supplies and a bloodless surrender could be negotiated.
When Khalid reported the failure of this mission, Abu Ubaidah wrote to caliph Umar about the situation, and invited him to come to Jerusalem to accept the surrender of the city.
Primary sources, such as chronicles from centuries closer or further removed from the time of the events, offer the year 638, for instance Theophilus of Edessa (695–785); or 636, 636/37, and 637.
It surrendered the city and gave guarantees of civil and religious liberty to Christians and Jews in exchange for the payment of jizya tax.
It was signed by Caliph Umar on behalf of the Muslims, and witnessed by Khalid, Amr, Abd al-Rahman ibn Awf, and Mu'awiya.
[25][26] It has been recorded in the Muslim chronicles, that at the time of the Zuhr prayers, Sophronius invited Umar to pray in the rebuilt Church of the Holy Sepulchre.
Seeing the poor state of where the Temple once stood, Umar ordered the area cleared of refuse and debris before having a wooden mosque built on the site.
[16] The earliest account of such a structure is given by the Gallic bishop Arculf, who visited Jerusalem between 679 and 682, and describes a very primitive house of prayer able to accommodate up to 3,000 worshippers, constructed of wooden beams and boards over preexisting ruins.
[31] More than half a century after the capture of Jerusalem, in 691, the Umayyad caliph Abd al-Malik commissioned the construction of the Dome of the Rock over a large outcropping of bedrock on the Temple Mount.
Whatever the intention, the impressive splendor and scale of the shrine is seen as having helped significantly in solidifying the attachment of Jerusalem to the early Muslim faith.
It is believed in Sunni Islam that Muhammad foretold the conquest of Jerusalem in numerous authentic hadiths in various Islamic sources,[32][33] including a narration mentioned in Sahih al-Bukhari in Kitab Al Jizyah Wa'l Mawaada'ah (The Book of Jizya and Storage): Narrated Auf bin Mali: I went to the Prophet during the Expedition to Tabuk while he was sitting in a leather tent.
^ b: Muslim historians differ in the year of the siege; while Tabari says it was 636, al-Baladhuri placed its date of surrender in 638 (Futuh II.XI or p. 139; p. 214 in Hitti translation).