The Quba Mosque (Quba’ Masjid or Masjid al-Quba, Arabic: مسجد قباء) in the outlying environs of Medina in Saudi Arabia, is the oldest mosque in the world. Its first stones were positioned by the Islamic prophet Muhammad on his emigration from the city of Mecca to Medina and the mosque was completed by his companions. Muhammad spent more than 20 nights in this mosque (after migrating) praying qasr (a short prayer) while waiting for Ali whose house was behind this mosque.

Abdel-Wahed El-Wakil was commissioned, in the 20th century, to conceive a larger mosque to replace the old mosque, he intended to incorporate old structure into his design. But the old mosque was torn down and replaced with a new one.

The new mosque consists of a rectangular prayer hall raised on a second storey platform. The prayer hall connects to a cluster containing:

• residential areas,

• offices,

• ablution facilities,

• shops, and

• a library

Six additional entrances are dispersed on the northern, eastern and western façades. Four minarets mark the corners of the prayer hall. The minarets rest on square bases, have octagonal shafts which take on a circular shape as they reach the top.