Masjid Quba is where the Prophet, accompanied by Abu Bakr, first stayed in Madinah 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 mosque was established here by the Prophet, the first to be built in Islam The virtue of Masjid Quba 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:10]. The Prophet 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]. he people of Yathrib (which was later named Al-Madinah Al-Munawwarah, the Enlightened City) had long awaited the Prophet, and each day they would go beyond the fields and palm groves and wait for him until the sun became unbearable. One day the people returned to their homes after waiting a long time for the Prophet. A Jew happened to catch a glimpse of a small group of white-robed travellers in the distance. He called out: “O people of Arabia! What you have been waiting for has arrived!” The Muslims lifted their weapons and rushed to greet the Prophet. There was a great clamour as everyone ran to the edge of the desert to catch a glimpse of the travellers. The Prophet then turned toward the right and came to Banu Amr bin Auf at Quba. Most of the Muslims who had emigrated from Makkah had stayed at Quba and many of them were there when the Prophet arrived (Source: Islamic Landmarks).