The Quba Mosque (Quba
Masjid or Masjid al-Quba) just outside
Medina, Saudi Arabia, is the first
Islamic mosque that was ever built. Its first stones were
positioned by the prophet
Muhammad on hijrah (journey) from the city of
Mecca ("Makkah") to Medina and the
masjid was completed by his companions. The Prophet spent more
than 20 nights in this mosque (after migrating) praying qasr
(short prayer) while waiting for Imam Ali whose house was behind
this mosque