Bismillah.
Narrated Nafi':
Ibn 'Umar never offered the Duha prayer except on two occasions:
(1) Whenever he reached Mecca; and he always used to reach Mecca in the forenoon. He would perform Tawaf round the Ka'ba and then offer two Rakat at the rear of Maqam Ibrahim.
(2) Whenever he visited Quba, for he used to visit it every Saturday. When he entered the Mosque, he disliked to leave it without offering a prayer. Ibn 'Umar narrated that Allah's Apostle used to visit the Mosque of Quba (sometime) walking and (sometime) riding. And he (i.e. Ibn 'Umar) used to say, "I do only what my companions used to do and I don't forbid anybody to pray at any time during the day or night except that one should not intend to pray at sunrise or sunset."
Narrated 'Abdullah bin Dinar:
Ibn 'Umar said, "The Prophet used to go to the Mosque of Quba every Saturday (sometimes) walking and (sometimes) riding." 'Abdullah (Ibn 'Umar) used to do the same.
Narrated Ibn 'Umar:
The Prophet used to go to the Mosque of Quba (sometimes) walking and sometimes riding. Added Nafi (in another narration), "He then would offer two Rakat (in the Mosque of Quba)."
Al-Tirmidhi (324) narrated from Usayd ibn Zuhayr al-Ansaari, who was one of the companions of the Prophet (peace and blessings of Allaah be upon him), that the Prophet (peace and blessings of Allaah be upon him) said:
Prayer in the mosque of Quba’ is like ‘Umrah.
Classed as saheeh by al-Albaani in Saheeh al-Tirmidhi.
Al-Nasaa’i (699) narrated that Sahl ibn Hunayf said: The Messenger of Allaah (peace and blessings of Allaah be upon him) said:
Whoever goes out to this mosque, the mosque of Quba’, and prays therein, will have (a reward) like that of ‘umrah.
Classed as saheeh by al-Albaani in Saheeh al-Nasaa’i.
So when you have the opportunity to visit Masjid Quba, do so. And pray two nawafil there. (y)
Is it necessary to visit Masjid Quba during Hajj or Umrah? Read this for the answer.
Wassalam.