 In Palestine and Syria, there was a revolt among the Bedouins (1024–1029).In an agreement in 1027 between Ali az-Zahir and Constantine VIII, Constantine VIII allowed the name of the caliph to be acknowledged in the mosques in the emperor's domain and the mosque at Constantinople to be restored.The hospice, which was built on the site of the monastery of Saint John the Baptist, took in Christian pilgrims travelling to visit the holy sites.