It is prescribed for the visitor to Madeenah and for the one who lives there to go to the Mosque of Quba’ and pray there, following the example of the Prophet (peace and blessings of Allaah be upon him) and seeking the reward of ‘Umrah. It was narrated that Sahl ibn Haneef said: The Messenger of Allaah (peace and blessings of Allaah be upon him) said: “Whoever goes out until he comes to this mosque – meaning the Mosque of Quba’ – and prays there, that will be equivalent to ‘Umrah.” Narrated by Ahmad, 3/437; al-Nasaa’i, 699; classed as saheeh by al-Albaani in Saheeh al-Targheeb, 1180, 1181.
According to Ibn Maajah: “Whoever purifies himself in his house, then comes to the Mosque of Quba’ and prays there, he will have the reward of ‘Umrah.” Narrated by Ibn Maajah, 1412.
In Sahih Muslim it is narrated that the Messenger of Allaah (peace and blessings of Allaah be upon him) used to go to the mosque of Quba’ every Saturday, walking or riding, and he would pray two rak’ahs there. Narrated by al-Bukhaari, 1191; Muslim, 1399
[Taken from Etiquettes of Ziyaarah - by Imâm of Masjid al Nabawi, Sheikh Salâh al-Budayr ]