The Arabian Desert has a connection with both Mesopotamia to the North and Egypt to the south and Islam, the religion that developed around the teachings of the Prophet Muhammad (570-632), began in the seminomadic setting of the southern edge of the great Arabian Desert and during the seventh century, it spread rapidly.
The first mosques provided simple architectural settings without domes, side chapels, ambulatories, crypts, baptisteries, or choirs. They included a fountain for the mandatory purifying ablutions and a large covered hall, usually laterally arranged, for rows of believers to prostrate themselves toward Mecca.
Like other nomadic peoples, the Arabs had scarce knowledge of masonry architecture. They borrowed forms and techniques from Persian, Roman, and Byzantine precedents. The Dome of the Rock in Jerusalem is an example of this condition. The arcade surrounding the central rock that gave the site its name had two other characteristics that became common in Islamic architecture: pointed arches and ablaq, alternating bands of different-coloured masonry.

The Dome of the Rock differed from most central plan Christian churches in its use of two concentric ambulatories which accommodated the pilgrims’ ritual of circling the rock under the dome and the interior piers and arcades followed the intersection of two superimposed nine-square grids.
AI-Walid l’s third project, the Great Mosque of Damascus took form between 707 and 714. Similar to the Dome of the Rock, the new mosque in Damascus reused the principal Greco-Roman temenos of the ancient city.
With the help of The Umayyads, the empire of Islam extended to its farthest, from the Indus valley in the east to Spain and Morocco in the west.
“While the first two centuries of Islamic design pursued strict geometric order for cities, palaces, and mosques, the texture of Arab Islamic cities evolved into a dense snarl of covered markets and tightly packed courtyard houses occasionally interrupted by orderly religious complexes.” (p.243)
Ingersoll, Richard. World Architecture: a Cross-Cultural History. Oxford University Press, 2019.
https://www.britannica.com/place/Arabian-Desert