During the journey from Makkah to Medina, the Prophet ﷺ reached a place near Medina called Quba. The region was named after a well called Quba. The Prophet ﷺ stayed there for four days (Rabi'al-Awwal in the first year of the Hijrah) and worked on the construction of the first mosque in Islam; the Quba Mosque.
There are quite a lot of traditions about the merit of this mosque. The Messenger of Allah ﷺ said, "Whoever purifies himself in his house, then comes to the Quba Mosque and performs a prayer in it, he will be given a reward like for the Umrah."
Quba Mosque is located in the southwest of Medina, 5 km from the Prophet's Mosque. It is the second largest mosque in Medina and was founded in 1406 Hijri (corresponding to 1986 AD). The mosque houses more than 55,000 worshippers and consists of 56 domes and 4 minarets.
 Surah At-Tawbah: 108
 Sahih Ibn Madshah Page or Number: 3/83