Quba is the place on the outskirts of Madinah where the Prophet (peace and blessings of Allah be on him), accompanied by Abu Bakr (may Allah be pleased with him) arrived and first stayed after emigrating from Makkah. They arrived on Monday 12th Rab’i al-Awwal, fourteen years after Prophethood and this date marks the beginning of the Islamic calendar (Hijra), (16th July 622 CE). A masjid was established here by the Prophet (peace and blessings of Allah be on him), the first to be built in Islam.
The virtue of Masjid Qubas is mentioned in the following Quranic verse in Surah Taubah: “…certainly a masjid founded on piety from the very first day is more deserving that you should stand in it…” [9:108]
The Prophet (peace and blessings of Allah be on him) said: “He who purifies himself at his home and comes to Masjid Quba and offers two rakats therein, will be rewarded the reward of an Umrah (lesser pilgrimage).” [Sunan ibn Majah]
Narrated by Abdullah bin Dinar: Ibn ‘Umar (may Allah be pleased with him) said, “The Prophet used to go to the Mosque of Quba every Saturday (sometimes) walk.

Find location on Google maps