When was the first mosque of Islam built?

When was the first mosque of Islam built?

اسلام کی پہلی مسجد کب تعمیر ہوئی؟
Explanation
The Quba Mosque is a mosque located on the outskirts of Medina

The first stones of Quba Mosque were positioned by Muhammad he arrived on his emigration from the city of Mecca to Medina

Muhammad spent 14 days in this mosque praying qaṣr

this mosque is said to be where the first Friday prayer was held, led by Muhammad


Very confusing question

Masjid-ul-Haram is the first masjid on the surface of the earth.

while

Masjid-e-Quba  is the first masjid in history of Islam.

***

Masjid quba is built after Hazrat Muhammad saw arrived in Madina.

****